Advertisements

show_admin_bar

Definition:
function show_admin_bar( $show ) {}

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.

Parameters

  • bool $show: Whether to allow the admin bar to show.

Source code

function show_admin_bar( $show ) {

	global $show_admin_bar;

	$show_admin_bar = (bool) $show;

}

10286

Advertisements

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: