apply_filters( 'site_admin_email_change_email', array $email_change_email, string $old_email, string $new_email )

Filters the contents of the email notification sent when the site admin email address is changed.

Parameters

$email_change_email

(array) Used to build wp_mail().

  • 'to'
    (string) The intended recipient.
  • 'subject'
    (string) The subject of the email.
  • 'message'
    (string) 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.
  • 'headers'
    (string) Headers.

$old_email

(string) The old site admin email address.

$new_email

(string) The new site admin email address.

Source

File: wp-includes/functions.php

View on Trac

Changelog

Version Description
4.9.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/site_admin_email_change_email