[wp-hackers] WP 3.1 admin bar

Bill Dennen dennen at gmail.com
Wed Feb 16 23:56:39 UTC 2011

> Add add_action( 'show_admin_bar', '__return_false' ); to your functions.php
> file.


I was looking for a way to disable it globally initially, but also
allow users to enable it if they want it.

Also, if I add that snippet to my functions.php file, users still see
the option to toggle it in their personal options. So, this sets up a
weird situation where we've disabled it globally, and users see an
option to enable it in either the front or backend, yet it does

Am I missing something obvious -- ie. a way to disable it and also
remove those options from the user's profile?


More information about the wp-hackers mailing list