On this page
apply_filters( 'lostpassword_user_data', WP_User|false $user_data, WP_Error $errors )
Filters the user data during a password reset request.
Description
Allows, for example, custom validation using data other than username or email address.
Parameters
Source
File: wp-includes/user.php. View all references
$user_data = apply_filters( 'lostpassword_user_data', $user_data, $errors );
Related
Used By
| Used By | Description |
|---|---|
| retrieve_password() wp-includes/user.php | Handles sending a password retrieval email to a user. |
Changelog
| Version | Description |
|---|---|
| 5.7.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/lostpassword_user_data