Remove wordpress menu and logo from admin panel.

Using this Simple Hook We can easily remove wordpress logo and related sub menus to wordpress logo from admin panel bar of WordPress,You Just need to do is just copy this hook and paste below code on the function.php file of your theme.

Before:


add_action('admin_bar_menu', 'remove_wordpress_logo', 999);
function remove_wordpress_logo( $admin_bar ) {
  $admin_bar->remove_node('wp-logo');
}

After:


Enjoy

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top