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

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

$user_id

The matched user ID.


Source

File: wp-includes/user.php

View on GitHub



Changelog

Changelog
Version Description
WP-4.3.0 Previously key hashes were stored without an expiration time.
WP-3.7.0 Introduced. Previously plain-text keys were stored in the database.