Ready to get started?Download WordPress

Plugin Directory

Disable Admin Bar and ToolBar

disable wordpress admin bar and toolbar for all users on frontend and backend with new unified coding

disable admin bar or toolbar on personal options turn off only theme integration but not remove code without minimizing memory consumption and speedup loading of control panel

Goodbye Admin Bar, Hello ToolBar Posted on: January 13, 2012 by Jeff Starr

When the Admin Bar hit the streets in WordPress 3.1, people seemed to either love it or hate it. And rightly so, it was a significant change in the appearance of the WP Admin area, and if not disabled in your User Profile, the front-end of your site as well. Many tips, tricks and plugins for customizing the Admin Bar began appearing around the Web. And then just as the dust began to settle, BAM — the “Admin Bar” transforms into the “Toolbar” with the WordPress 3.3 update.

The WordPress 3.3 update focused heavily on streamlining and optimizing the Admin experience. The Admin Bar of WP 3.1 was intended as the “first step toward a front-end editor”. The original Admin Bar was debated for several good reasons:

It’s enabled on the front-end by default
Gobbles up too much vertical screen space
It’s redundant, all links available elsewhere
It’s not visually appealing in general

Using the many Admin Bar tricks that became available around the Web, WordPress users dealt with the thing in their own way and moved on with their lives. Some use plugins, some custom snippets & scripts, some just love it as-is. But now with the new 3.3 update, the big question is “what works and what doesn’t?” We’re glad you asked.. Admin Bar is dead, long live the ToolBar

If you’ve updated to WP 3.3, you’ve seen the smaller “Toolbar” tucked neat above the Admin area. The new Admin Bar ToolBar seems to address some of the main concerns about the old Admin Bar:

No longer enabled on front-end by default
Uses less vertical screen space
Integrates the Admin header area, so no longer redundant
It looks a little better (in my opinion)

For those who have not yet updated or have no idea what’s going on, here is a visual comparison of the old “Admin Bar” and the new “Toolbar”:

The new ToolBar certainly looks better, but concerns remain. From what I’ve gathered, the main gripe is that the ToolBar is mandatory, and possibly still redundant, depending on site setup and configuration (plugins, networks, etc.). Is it really mandatory? That sounds silly to me, but seems to be the case:

So yeah, something changed, so the question for the Admin ToolBar is “what works and what doesn’t?” Let’s dig in and see what’s up.. Admin Bar changes, now WP ToolBar

As Ipstenu puts it: “You don’t have to like it, but it’s here to stay.” So it’s time to look at things practically and get on with it. First of all, if you have a plugin or functions script that hides, removes, or customizes the Admin Bar, definitely investigate to see if everything is still working according to plan. What works..

After some testing, we’ve seen the following functions.php snippets continue to work in WordPress version 3.3:

// disable the admin bar (front end only) -> show_admin_bar( false ); // disable the admin bar (front end only) -> add_filter( 'show_admin_bar', '__return_false' );

In WP 3.1, these functions hid the Admin Bar on both sides of the fence — front end & back end. In WP 3.3+, these snippets will hide the Admin ToolBar only on the front-end of your site (the public side). Likewise, this snippet of CSS added to your theme’s style.css file hides the ToolBar on the front-end:

/* hide the admin bar (front end only) */ -> #wpadminbar{display:none}

Keep in mind that, when using the CSS method, the ToolBar markup is still present in the source code, but will not be displayed in the browser.

Here is another useful snippet for disabling the ToolBar for lesser users:

// show admin bar only for admins -> if ( !current_user_can( 'manage_options' ) ) { add_filter( 'show_admin_bar', '__return_false' ); } // show admin bar only for admins and editors -> if ( !current_user_can( 'edit_posts' ) ) { add_filter( 'show_admin_bar', '__return_false' ); }

Note that this also only applies to ToolBar display on the front-end. What doesn’t work..

Basically the show_admin_bar() function seems to work as it did before version 3.3, except that now the ToolBar is integral to the Admin area, so disabling it using the previous functions works only on the front-end of your site. So tricks like this stopped working:

If you’re running WP 3.1+ or 3.2+ (not 3.3+), then show_admin_bar() will continue to disable the Admin Bar on both front and back ends of WordPress.

To be continued..

Without a doubt things will continue to change, and it’ll be fun watching as WordPress continues to evolve, ToolBar and all :)

Requires: 3.1 or higher
Compatible up to: 4.0
Last Updated: 2014-8-25
Downloads: 10,541


4 stars
4.8 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.

100,4,4 100,4,4
100,1,1 100,4,4 100,4,4 100,4,4