[wp-hackers] WP 3.1 admin bar
Dion Hulse (dd32)
wordpress at dd32.id.au
Thu Feb 17 00:19:14 UTC 2011
On Thu, 17 Feb 2011 11:07:21 +1100, Bill Dennen <dennen at gmail.com> wrote:
> 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! :)
because that was reverted, so it hasn't done anything for 6weeks.
It'll have to be hidden via JS/CSS for 3.1:
http://core.trac.wordpress.org/ticket/16004
Dion.
More information about the wp-hackers
mailing list