Filters the text of the email sent when a change of user email address is attempted.
Description
The following strings have a special meaning and will get replaced dynamically: <ul> <li>###USERNAME### The current user's username.</li> <li>###ADMIN_URL### The link to click on to confirm the email change.</li> <li>###EMAIL### The new email.</li> <li>###SITENAME### The name of the site.</li> <li>###SITEURL### The URL to the site.</li> </ul>
Parameters
$email_textstring
Text in the email.
$new_user_emailarray
{ Data relating to the new user email address. @type string $hash The secure hash used in the confirmation link URL. @type string $newemail The proposed new email address.}
$hashstring
The secure hash used in the confirmation link URL.
3956* Data relating to the newuser email address.3957*3958* @type string$hash The secure hash used in the confirmation link URL.3959* @type string$newemail The proposed newemail address.3960*}3961*/3962$content=apply_filters('new_user_email_content',$email_text,$new_user_email);39633964$content=str_replace('###USERNAME###',$current_user->user_login,$content);3965$content=str_replace('###ADMIN_URL###',esc_url(self_admin_url('profile.php?newuseremail='.$hash)),$content);3966$content=str_replace('###EMAIL###',$_POST['email'],$content);3967$content=str_replace('###SITENAME###',$sitename,$content);3968$content=str_replace('###SITEURL###',home_url(),$content);
History
Introduced in 4.9.0. Unchanged from 6.7.7 through 7.1.0.