• First off, thanks for the very helpful plugin! I like the masquerade link the User table, but I don’t like the one in the Admin bar. I don’t need to masquerade often enough to want it taking up space there (and shifting my whole menu over). How can I turn it off? It would be nice if this was a setting in a future version.

    https://www.ads-software.com/plugins/wp-masquerade/

Viewing 1 replies (of 1 total)
  • Add this to your functions.php:

    function remove_wp_masquerade_bar( $wp_admin_bar ){
    
    	if( is_plugin_active( 'wp-masquerade/masquerade.php' ) ){
    		
    		$wp_admin_bar->remove_node( 'wpmsq-ab-link' );
    		
    	}
    }
    
    add_action( 'admin_bar_menu', 'remove_wp_masquerade_bar', 99 );
    
Viewing 1 replies (of 1 total)
  • The topic ‘How do I turn off the Masquerade link in the Admin bar?’ is closed to new replies.