How do I permanently hide “Your Theme Contains Outdated Copies of Some WooCommerce Template Files” from users?

[ad_1]

Hi,

I want to hide the infamous “Your Theme Contains Outdated Copies of Some WooCommerce Template Files” for my users on my site since it’s on my board to keep that updated it’s enough that I get them.

Screenshot:
[https://i.ibb.co/dJW3sbd/124124.jpg])

I would prefer a solution that doesn’t require a plugin. I guess it ought to be possible through functions.php in my child, but I am just guessing.

God how I wish there was a way to basically disable all “admin related”, or even all, notifications for users.

Thank you and have a further good weekend!

[ad_2]
1 Comment
  1. If you want to kill all woo notices for all users, you can use something like this:

    `add_action( ‘init’, ‘remove_my_action’ );`

    `function remove_my_action()`

    `{`

    `global $wp_filter;`

    `remove_action( ‘admin_notices’, ‘[REPLACE WITH CORRECT WOO HOOK]’);`

    `}`

    Found [this]), too. Seems like a decent resource for adding user role support. It also has your kill switch example. 🙂

    Good luck! Looks simple enough. Make sure you test it locally/staging.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer