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.
3798* Data relating to the newuser email address.3799*3800* @type string$hash The secure hash used in the confirmation link URL.3801* @type string$newemail The proposed newemail address.3802*}3803*/3804$content=apply_filters('new_user_email_content',$email_text,$new_user_email);38053806$content=str_replace('###USERNAME###',$current_user->user_login,$content);3807$content=str_replace('###ADMIN_URL###',esc_url(self_admin_url('profile.php?newuseremail='.$hash)),$content);3808$content=str_replace('###EMAIL###',$_POST['email'],$content);3809$content=str_replace('###SITENAME###',$sitename,$content);3810$content=str_replace('###SITEURL###',home_url(),$content);
History
Introduced in 4.9.0. Unchanged from 6.7.7 through 7.1.0.