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

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

Source

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

Changelog

VersionDescription
5.7.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.