Set the display status of the admin bar.
This can be called immediately upon plugin load. It does not need to be called from a function hooked to the init action.
Signature
show_admin_bar( $show )
- show
- (boolean) Whether to allow the admin bar to show.
Return
(void)
Source
function show_admin_bar( $show ) {
global $show_admin_bar;
$show_admin_bar = (bool) $show;
}
WP Trac GitHub Bitbucket
Link here
-
URL
http://queryposts.com/function/show_admin_bar/ -
HTML
<a href='http://queryposts.com/function/show_admin_bar/'>show_admin_bar()</a> -
Markdown
[show_admin_bar()](http://queryposts.com/function/show_admin_bar/) -
BBCode
[url=http://queryposts.com/function/show_admin_bar/]show_admin_bar()[/url]