Filter hook 'lostpassword_user_data'

in WP Core File wp-includes/user.php at line 3135

Description

Filters the user data during a password reset request. Allows, for example, custom validation using data other than username or email address.

Occurrences

Filename Line Number
wp-includes/user.php 3135

Parameters

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

PHP Doc

/**
	 * Filters the user data during a password reset request.
	 *
	 * Allows, for example, custom validation using data other than username or email address.
	 *
	 * @since 5.7.0
	 *
	 * @param WP_User|false $user_data WP_User object if found, false if the user does not exist.
	 * @param WP_Error      $errors    A WP_Error object containing any errors generated
	 *                                 by using invalid credentials.
	 */