Toolonomy Logo
Last Updated on: October 31, 2020

Remove Specific Items from the WordPress Toolbar [PHP Snippet]

0 Shares

If you want to remove specific items from the WordPress Toolbar to declutter it and make things organized then this code snippet would help you achieve just that.

/* Advanced Scripts Method to Add This Snippet */
/* 
Title: Remove WordPress Toolbar Items
Type: PHP: Custom Code
Location: Plugins Loaded
Priority: 10
*/

function syncwin_remove_toolbar_nodes($wp_admin_bar) {
	
	$wp_admin_bar->remove_node('wp-logo');
	$wp_admin_bar->remove_node('stats');

}
add_action('admin_bar_menu', 'syncwin_remove_toolbar_nodes', 999);
0 Shares

Become a Toolonomy Community Member for Free!

Consider joining our Official Community Group if you want to get access to the exclusive insider content and information around the Exclusive Business Development Tools. Also, you will be able to get involved in interesting group discussions with like-minded people that are interested in similar topics as you.
Free Membership
Made with ❤ for Digital Entrepreneurs
Copyright © 2018 - 2022 SyncWin | All Rights Reserved.
Top crossmenu
0 Shares
Copy link
Powered by Social Snap