PHP+WORDPRESS

Remove WordPress logo from admin bar – 曹鹏PHP+WordPress

<?php
function caopeng_wp_admin_bar_remove() {
        global $wp_admin_bar;

        /* Remove their stuff */
        $wp_admin_bar->remove_menu('wp-logo');
}

add_action('wp_before_admin_bar_render', 'caopeng_wp_admin_bar_remove', 0);
?>

Leave a Reply

学习的梦想

锤炼的彩色