WordPress: eliminare informazioni su wordpress nella admin bar

Inserire queste righe nel functions.php del tema utilizzato:

function annointed_admin_bar_remove() {
        global $wp_admin_bar;
 
        $wp_admin_bar->remove_menu('wp-logo');
}
add_action('wp_before_admin_bar_render', 'annointed_admin_bar_remove

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>