Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Remove menu from admin bar


Roger Coathup
Participant

@rogercoathup

Ok, dug a little further, the remove_action needed to be called after the bp plugins had loaded.

So, the solution is:

function modify_adminbar(){

remove_action( ‘bp_adminbar_menus’, ‘bp_adminbar_random_menu’, 100 );

}

add_action(‘plugins_loaded’,’modify_adminbar’,99);

Skip to toolbar