Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Hide Notification Settings


pcwriter
Participant

@pcwriter

@jordynn

To remove the notifications subnav item, add the following snippet to your functions.php file:

`function remove_notifications_subnav(){
global $bp;
if ( $bp->current_component == $bp->settings->slug ) {
bp_core_remove_subnav_item($bp->settings->slug, ‘notifications’);
}
}
add_action( ‘wp’, ‘remove_notifications_subnav’, 2 );`

This is a simple function taken from this post by @mariochampion
https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/how-to-remove-and-add-items-in-bp_get_displayed_user_nav/?topic_page=2&num=15#post-71265

Hope this helps! :-)

Skip to toolbar