apply_filters( 'wp_password_change_notification_email', array $wp_password_change_notification_email, WP_User $user, string $blogname )
- Since
- 4.9.0
Filters the contents of the password change notification email sent to the site admin.
Compatibility
- WordPress
- since 4.9.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$wp_password_change_notification_emailarray- { Used to build wp_mail().
@type string $to The intended recipient - site admin email address.
@type string $subject The subject of the email.
@type string $message The body of the email.
@type string $headers The headers of the email.
}$tostringThe intended recipient - site admin email address.$subjectstringThe subject of the email.$messagestringThe body of the email.$headersstringThe headers of the email.
$userWP_User- User object for user whose password was changed.
$blognamestring- The site title.
Where this hook fires · 1
wp-includes/pluggable.php:2244wp_password_change_notification()
Source code
* @type string $message The body of the email. * @type string $headers The headers of the email. * } * @param WP_User $user User object for user whose password was changed. * @param string $blogname The site title. */ $wp_password_change_notification_email = apply_filters( 'wp_password_change_notification_email', $wp_password_change_notification_email, $user, $blogname ); wp_mail( $wp_password_change_notification_email['to'], wp_specialchars_decode( sprintf( $wp_password_change_notification_email['subject'], $blogname ) ), $wp_password_change_notification_email['message'], $wp_password_change_notification_email['headers']Changelog
Introduced in 4.9.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.