Remove Specific Items from the Top Admin Menu Bar

Remove Specific Items From The Top Admin Menu Bar Image

You know that menu bar that shows up at the top of your WordPress site when you’re logged in?  You know, the one that says your site’s name and has the “+New” dropdown menu? Yea, that one!…….GET RID OF IT!!

What it does…

Removes specific items from the top admin menu bar that shows when a user is logged in.

Why it does it…

So you can keep certain items hidden from certain users… or just pretty up the joint if you want.

How it does it…

Hooks to `wp_before_admin_bar_render` and specifically removes the items you tell it to.

Use the JSON file for easily importing into your CodeSnippetsPro plugin. Use the PHP file or just copy/paste the code sample into your functions.php if you’re not using CodeSnippetsPro.

Related Snips

Leave a Reply

Your email address will not be published. Required fields are marked *