• Resolved verityweb

    (@verityweb)


    Any idea why the following code is not working on my site?
    add_filter( 'auto_plugin_update_send_email', '__return_false' );

    I have used this code on many WordPress sites to suppress plugin update notification emails.

    As a test, I moved the code to the bottom of the functions.php files just before the closing ?> tag.

    I also checked to see if there were any existing plugins that might be overriding the function but, as far as I can tell, none of them are.

    • This topic was modified 3 years, 3 months ago by Jan Dembowski.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator t-p

    (@t-p)

    Based on THIS documentation, that snippet seems to be okay.

    To find any theme/plugin conflict, please attempt to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles.

    If you can install plugins, install and activate “Health Check”: https://www.ads-software.com/plugins/health-check/
    It will add some additional features under the menu item under Tools > Site Health.
    On its troubleshooting tab, you can Enable Troubleshooting Mode. This will disable all plugins, switch to a standard WordPress theme (if available), allow you to turn your plugins on and off and switch between themes, without affecting normal visitors to your site. This allows you to test for various compatibility issues.
    There’s a more detailed description about how to use the Health Check plugin and its Troubleshooting Mode at https://make.www.ads-software.com/support/handbook/appendix/troubleshooting-using-the-health-check/

    Thread Starter verityweb

    (@verityweb)

    The code works fine. The notifications were coming from the staging site I created and I didn’t pay attention to the URL in the notification emails! Duh!!!

    Thanks for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘code to suppress auto plugin update emails not working’ is closed to new replies.