lostpassword_user_data WordPress Filter Hook

The lostpassword_user_data Wordpress hook is used to retrieve a user's data when they have forgotten their password. This hook is called when the user submits the lost password form.

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.


Top ↑

Parameters

$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.


Top ↑

Source

File: wp-includes/user.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More