lost_password WordPress Action Hook

The lost_password hook is used to allow a user to reset their password if they have forgotten it. This hook is called when the user clicks the "Lost your password?" link on the login page.

do_action( 'lost_password', WP_Error $errors ) #

Fires before the lost password form.


Parameters

$errors

(WP_Error)A WP_Error object containing any errors generated by using invalid credentials. Note that the error object may not contain any errors.


Top ↑

Source

File: wp-login.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
5.1.0Added the $errors parameter.
1.5.1Introduced.

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.