apply_filters( 'site_admin_email_change_email', array $email_change_email, string $old_email, string $new_email )
- Since
- 4.9.0
Filters the contents of the email notification sent when the site admin email address is changed.
Compatibility
- WordPress
- since 4.9.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$email_change_emailarray- { Used to build wp_mail().
@type string $to The intended recipient.
@type string $subject The subject of the email.
@type string $message The content of the email.
The following strings have a special meaning and will get replaced dynamically:
-###OLD_EMAIL###The old site admin email address.
-###NEW_EMAIL###The new site admin email address.
-###SITENAME###The name of the site.
-###SITEURL###The URL to the site.
@type string $headers Headers.
}$tostringThe intended recipient.$subjectstringThe subject of the email.$messagestringThe content of the email. The following strings have a special meaning and will get replaced dynamically: -###OLD_EMAIL###The old site admin email address. -###NEW_EMAIL###The new site admin email address. -###SITENAME###The name of the site. -###SITEURL###The URL to the site.$headersstringHeaders.
$old_emailstring- The old site admin email address.
$new_emailstring- The new site admin email address.
Where this hook fires · 1
wp-includes/functions.php:8355wp_site_admin_email_change_notification()
Source code
* - `###SITEURL###` The URL to the site. * @type string $headers Headers. * } * @param string $old_email The old site admin email address. * @param string $new_email The new site admin email address. */ $email_change_email = apply_filters( 'site_admin_email_change_email', $email_change_email, $old_email, $new_email ); $email_change_email['message'] = str_replace( '###OLD_EMAIL###', $old_email, $email_change_email['message'] ); $email_change_email['message'] = str_replace( '###NEW_EMAIL###', $new_email, $email_change_email['message'] ); $email_change_email['message'] = str_replace( '###SITENAME###', $site_name, $email_change_email['message'] ); $email_change_email['message'] = str_replace( '###SITEURL###', home_url(), $email_change_email['message'] );Changelog
Introduced in 4.9.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.