Created
October 30, 2013 15:16
-
-
Save mustardBees/7234367 to your computer and use it in GitHub Desktop.
Change WordPress auto update email address
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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