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' );Code language: JavaScript (javascript)

Comments

Leave a Reply

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