Remove events from the WordPress admin bar

Way back in version 2.0.9, we added a dropdown to the WordPress admin bar for Events. This is a handy way to manage your events posts and settings as well as access your calendar conveniently from any page as long as you are logged into WordPress.

The Events Menu in the WP Admin Bar

But sometimes less is more, so if you prefer to keep Events out of the admin bar, add the following snippet to your theme's wp-config.php file, which is typically located in the root of your WordPress installation. It will remove that dropdown like a boss.

 /** Removes Events from WP Admin Bar  */