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_email
array -
Used to build wp_mail() .
to
stringThe intended recipients. Add emails in a comma separated string.subject
stringThe subject of the email.message
stringThe 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.
headers
stringHeaders. Add headers in a newline (rn) separated string.
-
$user
array -
The original user array.
-
$userdata
array -
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 );
Changelog
Version | Description |
---|---|
4.3.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
Use the code below if you don’t wish to show your real administrator email inside password change notifications.
Change ‘other_email@your-domain.com’ to the new email address.
don’t send email when user change password
Top ↑
Feedback
This is the wrong hook to use for that goal. For that goal you should use https://developer.wordpress.org/reference/hooks/send_password_change_email/ — By Beda —