Skip to content

Early-bird lifetime licence: $199 once, for the first 200 buyers only. See the offer

No emails about plugin and theme auto-updates

WordPress stops emailing you after it updates plugins and themes automatically. Failed updates are still reported.

  • Type PHP
  • Runs Everywhere (runs as WordPress loads)
  • Category Email
  • Tested with WordPress 7.1
PHP
<?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.

Move your snippets over this afternoon.

Importing changes nothing until you switch over, and your old shortcodes keep working.