Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Change WordPress auto update email address
<?php
/*
Plugin Name: Change WordPress auto update email address
Plugin URI: http://www.iweb.co.uk/
Description: Change the email address auto update notifications are sent to following an automatic update.
Version: 1.0
Author: iWeb
Author URI: http://www.iweb.co.uk/
*/
function iweb_filter_auto_update_email( $email ) {
$email['to'] = 'username@example.com'; // Override email address
return $email;
}
add_filter( 'auto_core_update_email', 'iweb_filter_auto_update_email', 1 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.