password_reset_key_expired WordPress Filter Hook

The password_reset_key_expired hook is triggered when a user's password reset key has expired. This hook can be used to perform cleanup tasks or to display a message to the user informing them that their password reset key has expired.

apply_filters( 'password_reset_key_expired', WP_Error $return, int $user_id ) #

Filters the return value of check_password_reset_key() when an old-style key is used.


Parameters

$return

(WP_Error)A WP_Error object denoting an expired key. Return a WP_User object to validate the key.

$user_id

(int)The matched user ID.


Top ↑

Source

File: wp-includes/user.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.3.0Previously key hashes were stored without an expiration time.
3.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