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> <h3>USERNAME### The current user's username.</h3> </li> <li> <h3>ADMIN_URL### The link to click on to confirm the email change.</h3> </li> <li> <h3>EMAIL### The new email.</h3> </li> <li> <h3>SITENAME### The name of the site.</h3> </li> <li> <h3>SITEURL### The URL to the site.</h3> </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.
3863* Data relating to the newuser email address.3864*3865* @type string$hash The secure hash used in the confirmation link URL.3866* @type string$newemail The proposed newemail address.3867*}3868*/3869$content=apply_filters('new_user_email_content',$email_text,$new_user_email);38703871$content=str_replace('###USERNAME###',$current_user->user_login,$content);3872$content=str_replace('###ADMIN_URL###',esc_url(self_admin_url('profile.php?newuseremail='.$hash)),$content);3873$content=str_replace('###EMAIL###',$_POST['email'],$content);3874$content=str_replace('###SITENAME###',$sitename,$content);3875$content=str_replace('###SITEURL###',home_url(),$content);
History
Introduced in 4.9.0. Unchanged from 6.7.7 through 7.1.0.