A quick tip on how to remove the first menu in the admin bar, or the all-new nickname widely used in the WP community “WordPress Toolbar”.
Foremost among the improvements: it’s not called the Admin Bar anymore! It is now the WordPress Toolbar.
So how do I manage to remove it?
Just copy the following code to your functions.php file and you’re all set. The changes will take effect right after you do a refresh.
add_action( 'wp_before_admin_bar_render', function() {
global $wp_admin_bar;
$wp_admin_bar->remove_menu('wp-logo');
}, 7 );