Remove menu items from WordPress Admin bar
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
[php]
/* 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’ );
[/php]