wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



show_admin_bar › WordPress Function

Depuis3.1.0
Dépréciéen/a
show_admin_bar ( $show )
Paramètres:
  • (bool) $show Whether to allow the admin bar to show.
    Requis: Oui
Défini(e) dans:
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.


Source

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