Snippet WP: remove the WordPress menu from the top admin bar

A small PHP function by the way which allows you to remove the small WordPress logo from the administration bar, and therefore save a little space at the top of a WordPress blog on the administrator side:

// Remove WP logo and WP dropdown menu from top admin bar
function admin_bar_remove_logo() {

global $wp_admin_bar;
$wp_admin_bar->remove_menu('wp-logo');
}
add_action( 'wp_before_admin_bar_render', 'admin_bar_remove_logo', 0 );

To add in your functions.php file or via a WP Code type extension.

Don't miss business advice by email

No spam, just an email when new content is published.

Leave a Reply

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

 

🥦 Potassium, essential for alkalizing the body. Find it in the
✔️ Legumes
✔️ Almonds
✔️ Spinach, broccoli, parsley
✔️ Lawyers
✔️ Oily fish
✔️ Artichokes, mushrooms
The ultimate guide to #Potassium in #keto can be found at https://buff.ly/4aAbFhX

🥩 Offal, forgotten nutritional treasures.
Rich in vitamins and minerals, organ meats like liver are excellent sources of protein and essential nutrients.
👉 Find the complete guide to the ideal diet on http://blooness.com.

Test, review and price of terminals for restaurants: here is my updated overview in 2025 of existing terminal solutions, with their advantages and weaknesses. https://buff.ly/3WAULtG

Load more

Don't miss business advice by email

No spam, just an email when new content is published.

en_USEN