Tagged: remove-activity-tab
Hi there!
I want to suppress the whole Activity tab and Make the Profile the default tab. I’ve found code to do that but then I get a 404 error page when I click on a user’s link.
This is the code I’ve found:
/* *** */
/* Remove Activity tab from profile */
define( ‘BP_DEFAULT_COMPONENT’, ‘profile’ ); // Triem nova pestanya per defecte
function bphelp_remove_activity_from_profile(){
bp_core_remove_nav_item(‘activity’);
}
add_action(‘bp_activity_setup_nav’,’bphelp_remove_activity_from_profile’);/* *** */
Is there something wrong or missing?
Thanks in advance.
Jaume.
Resolved!
There was a problem with the proper characters: instead of ‘ they had to be ‘.
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
This topic is: resolved