404 error when “suppressing” the 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.
- You must be logged in to reply to this topic.