Skip to content

Instantly share code, notes, and snippets.

Last active August 29, 2015 14:02
What would you like to do?
// Remove Settings->Notifications SubMenu
function skw_remove_notifications_subnav(){
global $bp;
if ( $bp->current_component == $bp->settings->slug ) {
bp_core_remove_subnav_item( $bp->settings->slug, 'notifications' );
add_action( 'wp', 'skw_remove_notifications_subnav', 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment