wpseek.com
A WordPress-centric search engine for devs and theme authors



lostpassword_user_data › WordPress Filter Hooks

Since5.7.0
Deprecatedn/a
apply_filters( 'lostpassword_user_data', $user_data, $errors )
Parameters: (2)
  • (WP_User|false) $user_data WP_User object if found, false if the user does not exist.
    Required: Yes
  • (WP_Error) $errors A WP_Error object containing any errors generated by using invalid credentials.
    Required: Yes
Defined at:
Codex:

Filters the user data during a password reset request.

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





Source

$user_data = apply_filters( 'lostpassword_user_data', $user_data, $errors );