How to Hide WooCommerce’s Annoying Admin Notices
WooCommerce is a great eCommerce plugin for WordPress. It works like a charm, but sometimes will throw messages in your admin panel that are an eye sore. Unfortunately, there’s no close button for these messages so they remain seen until you add a bit of code.
How to Remove the Admin Notice
The following bit of code will remove the “Install the WooThemes Updater plugin…” alert on the WordPress admin Dashboard:
1 2 |
//Remove WooCommerce's annoying update message remove_action( 'admin_notices', 'woothemes_updater_notice' ); |
Add the code above you your theme’s custom functionality plugin or functions.php file to effectively remove the message. This method is much better than using CSS to hide the message as it unhooks the message from ever being displayed.
I hope this helps! Please comment below if you have any issues or feedback.
3 Comments
mat429
February 27, 2014Hi, thanks for this code. At present my subscribers can see and act upon these messages. is there any way of hiding these updates from all user roles except admin using this code?
Thanks
Mat
Alessandro Marengo
November 7, 2014I’m searching for an answer to this issue too… Any news?
Pamith Clorida
January 3, 2018Not working dude