W3cubDocs

/WordPress

apply_filters( ‘retrieve_password_notification_email’, array $defaults, string $key, string $user_login, WP_User $user_data )

Filters the contents of the reset password notification email sent to the user.

Parameters

$defaultsarray
The default notification email arguments. Used to build wp_mail() .
  • to string
    The intended recipient – user email address.
  • subject string
    The subject of the email.
  • message string
    The body of the email.
  • headers string
    The headers of the email.
$keystring
The activation key.
$user_loginstring
The username for the user.
$user_dataWP_User
WP_User object.

Source

$notification_email = apply_filters( 'retrieve_password_notification_email', $defaults, $key, $user_login, $user_data );

Changelog

Version Description
6.0.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/retrieve_password_notification_email