Remove menu items from WordPress Admin bar

Posted: March 18, 2013 at 4:45 am

WordPress Dashboard Customize (Part 1)
Access the Active Theme of your website and open the functions.php file. Paste the snips below into the file then test.
Before

/* Remove menu items from WordPress admin bar */
function wps_admin_bar() {
    global $wp_admin_bar;
    $wp_admin_bar->remove_menu('wp-logo');
    $wp_admin_bar->remove_menu('about');
    $wp_admin_bar->remove_menu('wporg');
    $wp_admin_bar->remove_menu('documentation');
    $wp_admin_bar->remove_menu('support-forums');
    $wp_admin_bar->remove_menu('feedback');
    $wp_admin_bar->remove_menu('view-site');
}
add_action( 'wp_before_admin_bar_render', 'wps_admin_bar' );