Filters the text of the email sent when a change of site admin 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 proposed new site admin email address.</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_admin_emailarray
{ Data relating to the new site admin email address. @type string $hash The secure hash used in the confirmation link URL. @type string $newemail The proposed new site admin email address.}
$hashstring
The secure hash used in the confirmation link URL.
1520* Data relating to the newsite admin email address.1521*1522* @type string$hash The secure hash used in the confirmation link URL.1523* @type string$newemail The proposed newsite admin email address.1524*}1525*/1526$content=apply_filters('new_admin_email_content',$email_text,$new_admin_email);15271528$current_user=wp_get_current_user();1529$content=str_replace('###USERNAME###',$current_user->user_login,$content);1530$content=str_replace('###ADMIN_URL###',esc_url(self_admin_url('options.php?adminhash='.$hash)),$content);1531$content=str_replace('###EMAIL###',$value,$content);1532$content=str_replace('###SITENAME###',wp_specialchars_decode(get_option('blogname'),ENT_QUOTES),$content);
History
Introduced in 4.9.0. Unchanged from 6.7.7 through 7.1.0.