Remove Login, register menus from WP Adminbar


add_action( 'bp_setup_admin_bar' , 'bpdev_remove_login_signup' ); function bpdev_remove_login_signup(){ global $wp_admin_bar; $wp_admin_bar->remove_menu( 'bp-login' ); // Sign up if ( bp_get_signup_allowed() ) $wp_admin_bar->remove_menu( 'bp-register' ); }

#buddypress #adminbar #login #register