apply_filters( 'retrieve_password_message', string $message, string $key, string $user_login, WP_User $user_data )

Filters the message body of the password reset mail.


Description

If the filtered message is empty, the password reset email will not be sent.


Top ↑

Parameters

$message string
Email message.
$key string
The activation key.
$user_login string
The username for the user.
$user_data WP_User
WP_User object.

Top ↑

Source

File: wp-includes/user.php. View all references

$message = apply_filters( 'retrieve_password_message', $message, $key, $user_login, $user_data );


Top ↑

Changelog

Changelog
Version Description
4.1.0 Added $user_login and $user_data parameters.
2.8.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.