validate_password_reset WordPress Action Hook

The validate_password_reset hook is called when a user attempts to reset their password. This hook gives you the opportunity to validate the user's password reset request before it is processed.

do_action( 'validate_password_reset', WP_Error $errors, WP_User|WP_Error $user ) #

Fires before the password reset procedure is validated.


Parameters

$errors

(WP_Error)WP Error object.

$user

(WP_User|WP_Error)WP_User object if the login and reset key match. WP_Error object otherwise.


Top ↑

Source

File: wp-login.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
3.5.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.