Remove the New WordPress 3.1 Admin Bar

I have had to use this little bit of code a few times for multiple clients who didn’t want the new WordPress 3.1 admin bar. All you need to do is add this snippet to your theme’s functions.php and all of the admin bar functionality will be removed:

/* Disable the Admin Bar. */
add_filter( 'show_admin_bar', '__return_false' );
remove_action( 'personal_options', '_admin_bar_preferences' );

Share this:

Email
Facebook
Twitter
Pinterest
Pocket

Premium Themes for WordPress

Looking for an easy-to-use Premium Theme for WordPress? Check out Themes by bavotasan.com and have your site up and running in no time.

Use this WordPress website builder to build powerful websites in no time for your or your clients.

WordPress Hosting

WP Engine – designed from the ground-up to support and enhance the workflow of web designers.

Bluehost – providing quality web hosting solutions since 1996.

About the author

Picture of Luke Perrie

Luke Perrie