Send Automatic Update Emails to Your Developer
Sends WordPress core, plugin and theme auto-update emails to your developer or agency instead of the site owner, who usually does not need them.
Opens WPIDE on
Code
$wpide_update_recipients = array(); // e.g. array( '[email protected]' ); empty = no change.
$wpide_update_to = function ( $email ) use ( $wpide_update_recipients ) {
$to = array_values( array_filter( $wpide_update_recipients, 'is_email' ) );
if ( $to ) {
$email['to'] = $to;
}
return $email;
};
add_filter( 'auto_core_update_email', $wpide_update_to );
add_filter( 'auto_plugin_theme_update_email', $wpide_update_to );
add_filter( 'automatic_updates_debug_email', $wpide_update_to );
Notes
Add one or more addresses at the top; once set, the site owner stops receiving these emails.
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.