Hiding the admin bar

The admin bar in WP 3.1 is really cool, but what if you don’t want it? Individuals can remove it on their Profile pages, but there’s no admin option to remove it globally – unless you count the show_admin_bar filter. Here’s how to use that filter, for instance in your theme’s functions.php file:

add_filter( 'show_admin_bar', 'orgten_hide_admin_bar' );

function orgten_hide_admin_bar($showhide) {
$show_admin_bar = false;
return false;
}

Bookmark the permalink. Share on Twitter or Facebook.

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>