WordPress at Your Fingertips
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.


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

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


Since 5.7.0 Introduced.

Where the hook is called

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.