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 */

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);
SyncWin Logo
SyncWin is a dedicated place to explore the Content, Discussions, & Useful Details around topics like Business, Technology, and Lifestyle to help you learn and grow in your life.
About Us
Made with ❤ for WinSyncers
Copyright © 2018 - 2025 by SyncWin | All Rights Reserved.
crossmenuarrow-right
0 Shares
Copy link