On this page
apply_filters( 'password_change_email', array $pass_change_email, array $user, array $userdata )
Filters the contents of the email sent when the user’s password is changed.
Parameters
$pass_change_emailarray-
Used to build wp_mail() .
tostringThe intended recipients. Add emails in a comma separated string.subjectstringThe subject of the email.messagestringThe content of the email.
The following strings have a special meaning and will get replaced dynamically:
###USERNAME###The current user's username.###ADMIN_EMAIL###The admin email in case this was unexpected.###EMAIL###The user's email address.###SITENAME###The name of the site.###SITEURL###The URL to the site.
headersstringHeaders. Add headers in a newline (rn) separated string.
$userarray-
The original user array.
$userdataarray-
The updated user array.
Source
File: wp-includes/user.php. View all references
$pass_change_email = apply_filters( 'password_change_email', $pass_change_email, $user, $userdata );
Related
Used By
| Used By | Description |
|---|---|
| wp_update_user() wp-includes/user.php | Updates a user in the database. |
Changelog
| Version | Description |
|---|---|
| 4.3.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/password_change_email