wp_password_change_notification_email WordPress Filter Hook
The wp_password_change_notification_email hook is used to send an email notification to a user when their password is changed. This hook is called when a user's password is changed, either by the user themselves or by an administrator.
apply_filters( 'wp_password_change_notification_email', array $wp_password_change_notification_email , WP_User $user , string $blogname ) #
Filters the contents of the password change notification email sent to the site admin.
Parameters
- $wp_password_change_notification_email
(array)Used to build wp_mail().
- 'to'
(string) The intended recipient- site admin email address.
- 'subject'
(string) The subject of the email. - 'message'
(string) The body of the email. - 'headers'
(string) The headers of the email.
- 'to'
- $user
(WP_User)User object for user whose password was changed.
- $blogname
(string)The site title.
Source
Changelog
Version | Description |
---|---|
4.9.0 | Introduced. |