WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just updated one of my blogs to the new wordpress 3.1 and i need to hide the admin menu that shows up on top of the pages. How do i disable it ?


share|improve this question
up vote 1 down vote accepted

this is the simplest way. install showhide-adminbar. then all subscriber won't see the adminbar even they set to show it in viewing site.


share|improve this answer

Go to Dashboard > Your Profile > Show Admin Bar and uncheck "when viewing site"

share|improve this answer
Can it be turned off globally? I don't want new subscribers to get the bar. – wyrfel Feb 23 '11 at 22:43
@wyrfel - I found this. Add remove_action( 'init', 'wp_admin_bar_init' ); to your functions.php – eileencodes Feb 23 '11 at 22:47
+1 - Been holding onto that one liner since i read about the admin bar going into 3.1, i've hated the damn thing since i saw it appear on wordpress.com blogs. – t31os Feb 24 '11 at 1:06
@eileen.carpenter thanks. – wyrfel Feb 24 '11 at 7:09
Actually it turns out you shouldn't remove the init action to get rid of the admin bar (a filter on show_admin_bar is the correct way to do it). – t31os Mar 10 '11 at 12:25

This would hide the Admin Bar for all users except Administrators. Add at end of functions.php:

function my_function_admin_bar($content) {
    return ( current_user_can("administrator") ) ? $content : false;
add_filter( 'show_admin_bar' , 'my_function_admin_bar');
share|improve this answer

Add the following to your theme's functions.php file:

// Disable Admin Bar for all users
add_filter('show_admin_bar', '__return_false');

// Remove Admin Bar Options from all users' Profile page
add_action('admin_print_scripts-profile.php', 'hide_admin_bar_prefs');
function hide_admin_bar_prefs() {

<style type="text/css">
    .show-admin-bar { display: none; }

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.