Disable Toolbar Links

WordPress comes out-of-the-box with a lot of stuff you don’t need.  Most of it can eventually be helpful.  But it loads tons of stuff in the admin bar (toolbar) that you might never need.  For example, I hide the WP logo on client sites and replace it with my own logo.  If I do that, I don’t the WP logo loading anymore… it would just be an extra call that slows down the site.  This is pretty easy to fix, though.

We can use a filter to do the work for us.  Now, its easy to hide the updates admin bar link, without using a huge plugin with tons of other features we don’t need.  Don’t want your users browsing the support forums?  Now you can hide that link and add one that goes to your website or forum site.  Cool, huh?

To keep a certain functionality, simply comment the line or remove it.  Any filter that isn’t commented here will be deactivated.

Add to functions.php or a plugin.


Dave focuses in WordPress UI Design and WordPress Plugin Development (some have labelled him a fanatic) but has hands in many other projects, including photography and music. He's never far from a computer... or an iPad (for testing purposes, of course). Don't even try to bother him during Premier League games, though... he's cheering way too loudly for a team destined to play second fiddle. Dave currently teaches courses in code and philosophy at California State University, Long Beach (well... from home for the foreseeable future) alongside his small business at dauid.us. But, every now and then, he steps outside to protest or give the dog a car ride.
© 2008-2020, dauid.us