When you’ve enabled plugins to be automatically updated by WordPress, you get a confirmation email every single time that happens. This may not what you want, so fortunately, we have a filter available to us:
/** * Disable automatic plugin update notification emails. * * This filter hooks into the 'auto_plugin_update_send_email' filter and * disables the email notifications sent after automatic plugin updates by * returning false. * * @see https://developer.wordpress.org/reference/hooks/auto_plugin_update_send_email/ */ add_filter( 'auto_plugin_update_send_email', '__return_false' );
Just add this to your theme’s
functions.php or site core functionality plugin. Either will do, emails will stop.
If there’s a scenario where you would like to receive notifications when the update fails, check out Andy Fragen’s Gist. Implementing his version will mean you’ll still receive an email when the update fails.
Leave a Reply