What is Remove Specific Items from the WordPress Toolbar [PHP Snippet]?

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.

  • Published on: October 31, 2020
  • Updated on: October 31, 2020

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);

Related Snippets

Keep exploring and sharpen your Bricks Builder skills with more expert snippets tailored just for you.

Explore More Snippets

CSS Snippet to Add Layered Glow Effect in Bricks Builder

This effect creates a soft, luminous glow surrounding any shape or element by layering blurred duplicates. It adds gentle depth and visual focus without overpowering the design, perfect for giving…

Read Now

CSS Snippet to Add Glassmorphism Effect in Bricks Builder

This effect transforms sections of your website or app into translucent glass, allowing just enough of the background to peek through while gently softening it. The result is a sleek,…

Read Now

Disable WordPress Blog Features with a PHP Code Snippet

This code snippet disables all blog-related features in a WordPress site to ensure it functions purely as a business site without blogging capabilities for the admin or front-end users.

Read Now
  • Connect. Learn. Build Together.

    Become part of the WPnomy family; a vibrant, supportive community where freelancers, designers, and agencies come together to share insights, ask questions, and celebrate wins. Here, you’ll find encouragement, real-world tips, and a network of passionate WordPress users ready to help you grow.

    Join Facebook Community
    • Connect with passionate WordPress users who share your goals and challenges.
    • Access practical tips, insider tricks, and real-world solutions tailored for all skill levels.
    • Share your progress, get feedback, and celebrate your wins with a supportive network.
    • Stay updated on the latest WordPress features, tutorials, and community events.
    • Experience friendly mentorship and no-fluff guidance, making web building easier and more fun.
    WPnomy - Default Featured Image

    Connect. Learn. Build Together.

    Become part of the WPnomy family; a vibrant, supportive community where freelancers, designers, and agencies come together to share insights, ask questions, and celebrate wins. Here, you’ll find encouragement, real-world tips, and a network of passionate WordPress users ready to help you grow.

    Join Facebook Community