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.
$show
Sortie :
@param bool $show Whether to allow the admin bar to show.
// Utilisation de la fonction show_admin_bar
$result = show_admin_bar($show);
if ($result) {
// Votre logique ici
}
Chargement des actualités...