No emails about plugin and theme auto-updates
WordPress stops emailing you after it updates plugins and themes automatically. Failed updates are still reported.
<?php
// Email only when an update failed; successful updates stay quiet.
$snipfire_only_failures = static function ( $enabled, $results ) {
foreach ( (array) $results as $result ) {
if ( empty( $result->result ) || is_wp_error( $result->result ) ) {
return $enabled;
}
}
return false;
};
add_filter( 'auto_plugin_update_send_email', $snipfire_only_failures, 10, 2 );
add_filter( 'auto_theme_update_send_email', $snipfire_only_failures, 10, 2 );
Good to know
“No email after successful automatic updates” covers WordPress core updates; this one covers plugins and themes.
In these packs
- Email: Emails from your name and address, sent through SMTP, and fewer notification emails.