[wp-trac] [WordPress Trac] #16249: Control of admin bar hiding/display

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 15 22:19:27 UTC 2011


#16249: Control of admin bar hiding/display
----------------------------+-------------------------
 Reporter:  johnhennmacc    |       Owner:
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:
Component:  Administration  |     Version:  3.1
 Severity:  normal          |  Resolution:  worksforme
 Keywords:                  |
----------------------------+-------------------------
Changes (by nacin):

 * status:  new => closed
 * resolution:   => worksforme
 * milestone:  Awaiting Review =>


Comment:

 You're not disabling it properly. Use the following function or hook:
 {{{
 show_admin_bar( false );
 }}}
 Or:
 {{{
 add_filter( 'show_admin_bar', '__return_false' );
 }}}

 Additionally, you can change the callback that spits out the CSS, thus
 allowing you to adjust it for your theme if for some reason it isn't
 compatible.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16249#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list