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 Winter 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). If you've been to a WordCamp in Southern California, he probably already knows who you are (or maybe not - he's terrible with names). Dave currently teaches courses at California State University, Long Beach alongside his small business at dauid.us (and his students think he's pretty boss).
© 2008-2018, dauid.us