Re: Remove menu from admin bar
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);