apply_filters( 'retrieve_password_notification_email', array $defaults )
Filters the contents of the reset password notification email sent to the user.
Parameters
-
$defaults
array -
The default notification email arguments. Used to build wp_mail() .
to
stringThe intended recipient - user email address.subject
stringThe subject of the email.message
stringThe body of the email.headers
stringThe headers of the email.
Source
File: wp-includes/user.php
.
View all references
$notification_email = apply_filters( 'retrieve_password_notification_email', $defaults, $key, $user_login, $user_data );
Changelog
Version | Description |
---|---|
6.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
Here’s an example of how you can use this inside
functions.php
:Inside the
$defaults
variable is an array with all the necessary data that you can modify.