Remove Activity Tab From Buddypress Profile Page

Here’s another tiny WordPress code snippet which is useful to remove activity tab from BuddyPress profile page.

Quick Tip : Disable HTML From Activity Updates in BuddyPress

All you need to do is copy the following lines of code and paste it inside your functions.php file located inside your theme directory.

function bphelp_remove_activity_from_profile(){
    bp_core_remove_nav_item('activity');
}
add_action('bp_activity_setup_nav','bphelp_remove_activity_from_profile');

 

0 Comments

Leave a Comment.