apply_filters( 'email_change_email', array $email_change_email , array $user , array $userdata )
Filters the contents of the email sent when the user’s email is changed.
Parameters
- $email_change_email
-
Used to build wp_mail().<br>
- 'to'
(string) The intended recipients.<br> - 'subject'
(string) The subject of the email.<br> - 'message'
(string) The content of the email.<br> The following strings have a special meaning and will get replaced dynamically:<br>- ###USERNAME### The current user's username.<br>
- ###ADMIN_EMAIL### The admin email in case this was unexpected.<br>
- ###NEW_EMAIL### The new email address.<br>
- ###EMAIL### The old email address.<br>
- ###SITENAME### The name of the site.<br>
- ###SITEURL### The URL to the site.<br>
- 'headers'
(string) Headers.<br>
- 'to'
- $user
-
The original user array.
- $userdata
-
The updated user array.
Source
File: wp-includes/user.php
Changelog
Version | Description |
---|---|
4.3.0 | Introduced. |