Remove the WordPress Logo From the Admin Bar
Removes the WordPress logo menu (About WordPress, documentation and support links) from the left side of the admin bar.
Opens WPIDE on
Code
add_action( 'admin_bar_menu', function ( $admin_bar ) {
$admin_bar->remove_node( 'wp-logo' );
}, 999 );
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.