As a developer of WordPress plugins, it’s safe to say that my Admin bar is FULL of super useful items added by plugins that help me develop more efficiently. That being said, it’s also full of a bunch of ‘junk’ that just isn’t needed in my local environment most of the time. Case in point, the ‘Updates’ icon and the ‘Comments’ icon.

Screen Shot 2015-10-27 at 10.16.02 AM

In addition to all the default items that show up in a Network Install I’ve got items added by Query Monitor, Airplane Mode, Debug Bar, Plugin Toggle, and my own Blog ID item.

My main machine is a Macbook Air 11″ and from time to time, I disconnect from the monitors and work on the single screen, and with that many items, it get’s a little crowded. So here’s what I’ve dropped into my own MU plugin to help clean up the interface a bit:

function kfg_remove_admin_bar_items( $wp_admin_bar ) {
	$wp_admin_bar->remove_node( 'wp-logo' );
	$wp_admin_bar->remove_node( 'updates' );
	$wp_admin_bar->remove_node( 'comments' );
add_action( 'admin_bar_menu', 'kfg_remove_admin_bar_items', PHP_INT_MAX, 1 );

With this, I get the following view:

Screen Shot 2015-10-27 at 10.20.53 AM

This both cleans up some of the unnecessary items. The reason for getting rid of the ‘updates’ notifications is I work mostly off Git branches, which sometimes I’m installing a version that isn’t latest on the repository for testing purposes.

Anyway, I hope that helps some devs out in getting rid of items they don’t want to see in their development environment. You can read more about the `remove_node` method on the WordPress Codex.


Posted by Chris Klosowski

Chris Klosowski is the Director of Technology at Sandhills Development, LLC, creators of fine WordPress plugins, and ecommerce solutions.


  1. It’s a shame you don’t have a donate button! I’d definitely
    donate to this outstanding blog! I guess for now i’ll settle for book-marking and adding your RSS feed to my Google account.
    I look forward to new updates and will talk about this website with my Facebook group.
    Talk soon!


  2. Wow, that’s what I was searching for, what a information! existing here at
    this website, thanks admin of this site.


Leave a reply

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