Filters the contents of the email sent when the user's email is changed.
Parameters
$email_change_emailarray
{ Used to build wp_mail(). @type string $to The intended recipients. @type string $subject The subject of the email. @type string $message The content of the email. The following strings have a special meaning and will get replaced dynamically: - ###USERNAME### The current user's username. - ###ADMIN_EMAIL### The admin email in case this was unexpected. - ###NEW_EMAIL### The new email address. - ###EMAIL### The old email address. - ###SITENAME### The name of the site. - ###SITEURL### The URL to the site. @type string $headers Headers.}
$tostring
The intended recipients.
$subjectstring
The subject of the email.
$messagestring
The content of the email. The following strings have a special meaning and will get replaced dynamically: - ###USERNAME### The current user's username. - ###ADMIN_EMAIL### The admin email in case this was unexpected. - ###NEW_EMAIL### The new email address. - ###EMAIL### The old email address. - ###SITENAME### The name of the site. - ###SITEURL### The URL to the site.
2898*-`###SITEURL###` The URL to the site.2899* @type string$headers Headers.2900*}2901* @param array$user The original user array.2902* @param array$userdata The updated user array.2903*/2904$email_change_email=apply_filters('email_change_email',$email_change_email,$user,$userdata);29052906$email_change_email['message']=str_replace('###USERNAME###',$user['user_login'],$email_change_email['message']);2907$email_change_email['message']=str_replace('###ADMIN_EMAIL###',get_option('admin_email'),$email_change_email['message']);2908$email_change_email['message']=str_replace('###NEW_EMAIL###',$userdata['user_email'],$email_change_email['message']);2909$email_change_email['message']=str_replace('###EMAIL###',$user['user_email'],$email_change_email['message']);2910$email_change_email['message']=str_replace('###SITENAME###',$blog_name,$email_change_email['message']);
History
Introduced in 4.3.0. Unchanged from 6.7.7 through 7.1.0.