• anonymized-14711860

    (@anonymized-14711860)


    We’ve got the following notification appearing for all new users:

    https://cjhy.uk/jw.

    How can it be disabled? We do have a child theme.

    Huge thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author acosmin

    (@acosmin)

    You can add this in your child theme’s functions.php file, at the bottom:
    remove_action('tgmpa_register','my_theme_register_required_plugins');

    Thread Starter anonymized-14711860

    (@anonymized-14711860)

    Thanks for the help.

    I needed a couple of tweaks in the end, as per https://wordpress.stackexchange.com/questions/170663/remove-action-on-after-setup-theme-not-working-from-child-theme, but the below worked great:

    add_action( 'tgmpa_register', 'remove_JW_recommended_plugins', 0 );
    
    function remove_JW_recommended_plugins() {
    
        remove_action( 'tgmpa_register', 'my_theme_register_required_plugins' );
    }

    @acosmin Yikes.. please rename your TGMPA registration function to have your theme functions prefix instead of my_theme (my_theme_register_required_plugins should be something like justwrite_register_required_plugins)

    While we’re on the topic: please upgrade the included version of the TGM plugin activation class to the latest version (2.6.1). You are currently using version v2.4.2 which is ”’very”’ old, out-of-date, buggy and has a known security issue.

    If you download a fresh copy of TGMPA using the Custom TGMPA Generator, it will serve you with a customized download of TGMPA which will pass the Theme Check rules and solve nearly all of the above issues.

    Be aware of some minor changes to the TGMPA configuration options. See the changelog for more information or the Configuration page for more detail on the current options.

    In case you author any other themes using TGMPA: the same advice to upgrade the TGMPA library applies for those.

    Theme Author acosmin

    (@acosmin)

    @jrf I was planning on releasing an update on Monday. I’ve added your suggestions on the list. Thank you!

    @acosmin Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Disable Plugin Install Notification’ is closed to new replies.