• About WordPress
    • About WordPress
    • WordPress.org
    • Documentation
    • Support
    • Feedback
  • Log In
  • Register

WordPress.org

  • Showcase
  • Learn
  • Themes
  • Plugins
  • Mobile
  • Support
    • Documentation
    • Forums
  • Get Involved
    • Five for the Future
  • About
  • Blog
  • Hosting
  • Get WordPress

Code Reference

Skip to content
Filter by type:
Search
Browse: Home / Reference / Hooks / lostpassword_errors

apply_filters( 'lostpassword_errors', WP_Error $errors, WP_User|false $user_data )

Filters the errors encountered on a password reset request.

Contents

  • Description
  • Parameters
  • Source
  • Related
    • Used By
  • Changelog
  • User Contributed Notes

Description #Description

The filtered WP_Error object may, for example, contain errors for an invalid username or email address. A WP_Error object should always be returned, but may or may not contain errors.

If any errors are present in $errors, this will abort the password reset request.


Top ↑

Parameters #Parameters

$errors

(WP_Error) A WP_Error object containing any errors generated by using invalid credentials.

$user_data

(WP_User|false) WP_User object if found, false if the user does not exist.


Top ↑

Source #Source

File: wp-login.php

View on Trac


Top ↑

Related #Related

Used By #Used By

Used By
Used By Description
wp-login.php: retrieve_password()

Handles sending a password retrieval email to a user.


Top ↑

Changelog #Changelog

Changelog
Version Description
5.5.0 Introduced.

Top ↑

User Contributed Notes #User Contributed Notes

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

  • About
  • Blog
  • Hosting
  • Donate
  • Support
  • Developers
  • Get Involved
  • Learn
  • Showcase
  • Plugins
  • Themes
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
  • @WordPress
  • WordPress

Code is Poetry.

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.