wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



show_admin_bar › WordPress Function

Seit3.1.0
Veraltetn/v
show_admin_bar ( $show )
Parameter:
  • (bool) $show Whether to allow the admin bar to show.
    Erforderlich: Ja
Definiert in:
Codex:

Sets 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 {@see 'init'} action.


Quellcode

function show_admin_bar( $show ) {
	global $show_admin_bar;
	$show_admin_bar = (bool) $show;
}