Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Remove the General Settings in BuddyPress v1.6.1

@megainfo

Participant

Hi @wpmirwin, this part of code above is from buddypress Notifcation manager plugin.
https://wordpress.org/extend/plugins/buddypress-notifications-manager/
mybe this plugin can help you.

this function hide the notifications subnav, and it should work in bp 1.5 and bp 1.6

function bp_hide_notifications_subnav(){
global $bp;
bp_core_remove_subnav_item($bp->settings->slug, ‘notifications’);

if ( bp_use_wp_admin_bar() ) {
add_action( ‘wp_before_admin_bar_render’, create_function(
”, ‘global $bp, $wp_admin_bar; $wp_admin_bar->remove_menu( “my-account-settings-notifications” );’ ) );
}
}

//if is not bp 1.5
if ( version_compare( BP_VERSION, ‘1.5’ ) < 0 )
add_action( ‘wp’, ‘bp_hide_notifications_subnav’);
else
add_action( ‘bp_setup_nav’, ‘bp_hide_notifications_subnav’ );

Skip to toolbar