Remove Links From the Admin Bar

If you need to remove an item from the Admin Bar, it turns out that’s pretty easy too.

add_action( 'admin_bar_menu', 'remove_admin_bar_menu', 70 );
function remove_admin_bar_menu( $wp_admin_bar ) {
    $wp_admin_bar->remove_menu( 'widgets' );
}

Leave a Reply

Your email address will not be published. Required fields are marked *