[wp-hackers] WP 3.1 admin bar

Bill Dennen dennen at gmail.com
Thu Feb 17 00:07:21 UTC 2011

On Wed, Feb 16, 2011 at 7:01 PM, Kevin J Cristiano <kcristiano at gmail.com> wrote:
> I use this to get rid of the profile options and disable the admin bar.  You
> can add this to the functions.php or if you switch themes, just turn it into
> a plug in.
> /* Disable the Admin Bar. */
> add_filter( 'show_admin_bar', '__return_false' );
> /* Remove the Admin Bar preference in user profile */
> remove_action( 'personal_options', '_admin_bar_preferences' );

Thank you. This is not working for me in  3.1-RC4-17462. (adding the
remove_action does nothing). I'll assume this is because I'm using a
bleeding edge nightly! :)


More information about the wp-hackers mailing list