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>###USERNAME### The current user's username.</li> <li>###ADMIN_URL### The link to click on to confirm the email change.</li> <li>###EMAIL### The proposed new site admin email address.</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_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.
1495* Data relating to the newsite admin email address.1496*1497* @type string$hash The secure hash used in the confirmation link URL.1498* @type string$newemail The proposed newsite admin email address.1499*}1500*/1501$content=apply_filters('new_admin_email_content',$email_text,$new_admin_email);15021503$current_user=wp_get_current_user();1504$content=str_replace('###USERNAME###',$current_user->user_login,$content);1505$content=str_replace('###ADMIN_URL###',esc_url(self_admin_url('options.php?adminhash='.$hash)),$content);1506$content=str_replace('###EMAIL###',$value,$content);1507$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.