wordpress / latest / hooks / password_reset_key_expired.html

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.

Source

File: wp-includes/user.php. View all references

return apply_filters( 'password_reset_key_expired', $return, $user_id );

Used By

Used By Description

Changelog

Version Description
4.3.0 Previously key hashes were stored without an expiration time.
3.7.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/password_reset_key_expired