show_admin_bar

FUNCTION wp-includes\admin-bar.php (ligne 1312) github
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.

Paramètres

Entrée :
$show
Sortie :
@param bool $show Whether to allow the admin bar to show.

Utilisation

// Utilisation de la fonction show_admin_bar
$result = show_admin_bar($show);

if ($result) {
    // Votre logique ici
}

Actualités

Chargement des actualités...