Fires before the admin bar is rendered.
Se déclenche avant l'affichage de la barre d'administration.
N/A
Sortie :
add_action('wp_before_admin_bar_render', 'customize_admin_bar');
function customize_admin_bar() {
global $wp_admin_bar;
if (!is_admin()) {
$wp_admin_bar->add_menu(array(
'id' => 'custom',
'title' => 'Custom',
'href' => home_url('/custom')
));
}
}
Chargement des actualités...