Similar to https://wordpress.stackexchange.com/q/206735/92434, Disable update notification for individual plugins.

I have purchased a theme, which displays a notice in admin panel to all administrators to install recommended plugins.

In child theme, how can I disable this notice to make it not appear any more in the admin panel in the future?

Parent theme is using TGM Plugin Activation to display the notice.

  • 1
    that will depend on the theme. without knowing how the theme displays the notice it will be hard to answer. – Mark Kaplun Apr 15 '16 at 15:43
  • isn't there a standard way to do it? – maciek Apr 15 '16 at 15:49
  • 1
    kinda there is, but you don't know if the theme follows it, and you need some specific details for that. Try to search for admin_notice hook at the source code of the theme – Mark Kaplun Apr 15 '16 at 16:19
  • looked into code and got to know parent theme is using TGM Plugin Activation tgmpluginactivation.com – maciek Apr 15 '16 at 16:50
  • ok, at this I just can't help anymore as I don't know how TGM works – Mark Kaplun Apr 15 '16 at 17:38

If you're sure you don't need those plugins and if TGM is not tied up with any required licenses for your plugins, just pull TGM Plugin Activation right out.

It's a three step process. One: find and delete the plugin registration function.

 * Required and Recommended Plugins
function prefix_register_plugins() {

     * Array of plugin arrays. Required keys are name and slug.
     * If the source is NOT from the .org repo, then source is also required.
    $plugins = array(

        // WordPress SEO
            'name'     => 'WordPress SEO by Yoast',
            'slug'     => 'wordpress-seo',
            'required' => false,

    tgmpa( $plugins );
add_action( 'tgmpa_register', 'prefix_register_plugins' );

Two: find and delete the require_once() call that references the TGMPA class file.

 * Include the TGM_Plugin_Activation class.
require_once dirname( __FILE__ ) . '/class-tgm-plugin-activation.php';

Three: remove class-tgm-plugin-activation.php as it's not needed any more.

|improve this answer|||||
  • Consider I want to disable notices in the child theme only, not changing original theme, eg. because of its updates. – maciek Apr 15 '16 at 20:47
  • These notices will get passed through to the child theme as long as it's a child of its parent. I.e. this part of the code will be run as long as the child and parent are connected. In the best case, you'd still have to modify the parent them not to run the plugin activation when called on by a child theme. If there's a better answer, I'd love to hear it too. – Foliovision Apr 16 '16 at 11:39
  • This shouldnt be a correct answer because when the parent theme is updated any changes will be lost. – rhysclay Aug 19 '18 at 23:04
  • Rhys, there's two simple solutions here. 1. don't update the parent theme (unless for security fixes, see 2). 2. follow the same steps on update. It's also possible that the TGM section will be in unchanged files so you could just re-add the edited files). – Foliovision Aug 20 '18 at 2:58
  • I think this is a good question and not off topic. The same WP thought control police which don't want you to be able to disable theme notifications or license notifications seem to be downvoting my answer. A better answer would be more useful. – Foliovision Sep 2 '18 at 19:10

Not the answer you're looking for? Browse other questions tagged or ask your own question.