How to disable the WordPress Admin Bar

How to disable the WordPress Admin Bar without a Plugin

With the WordPress 3.1 it comes a new feature. The WordPress Admin Bar wich is the same bar in WordPress.com blogs.

Yes, you can disable it from your Profile page but...

If you want to disable it for all users, and remember you should keep the number os WordPress Plugins low, use this piece of code:

add_filter( 'show_admin_bar', '__return_false' );

About Rick

Senior Front-end Software Engineer from Barcelona, Haidong Gumdo Instructor (korean martial art of the sword), street photographer, travel lover, TV addict, Boston Red Sox fan, and privacy advocate.

Leave a Reply

Add <code> Some Code </code> by using this tags.

*
*