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.
1501* Data relating to the newsite admin email address.1502*1503* @type string$hash The secure hash used in the confirmation link URL.1504* @type string$newemail The proposed newsite admin email address.1505*}1506*/1507$content=apply_filters('new_admin_email_content',$email_text,$new_admin_email);15081509$current_user=wp_get_current_user();1510$content=str_replace('###USERNAME###',$current_user->user_login,$content);1511$content=str_replace('###ADMIN_URL###',esc_url(self_admin_url('options.php?adminhash='.$hash)),$content);1512$content=str_replace('###EMAIL###',$value,$content);1513$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.