WordPress at a glance
filter is not described

lostpassword_user_data filter-hook . WP 5.7.0

Filters the user data during a password reset request.

Allows, for example, custom validation using data other than username or email address.

Usage

add_filter( 'lostpassword_user_data', 'filter_function_name_4154', 10, 2 );
function filter_function_name_4154( $user_data, $errors ){
	// filter...

	return $user_data;
}
$user_data(WP_User|false)
WP_User object if found, false if the user does not exist.
$errors(WP_Error)
A WP_Error object containing any errors generated by using invalid credentials.

Changelog

Since 5.7.0 Introduced.

Where the hook is called

retrieve_password()
lostpassword_user_data
wp-includes/user.php 2702
$user_data = apply_filters( 'lostpassword_user_data', $user_data, $errors );

Where in WP core the hook is used WordPress

Usage not found.