apply_filters( ‘password_reset_key_expired’, WP_Error $return, int $user_id )

In this article

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

Parameters

$returnWP_Error
A WP_Error object denoting an expired key.
Return a WP_User object to validate the key.
$user_idint
The matched user ID.

Source

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

Changelog

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

User Contributed Notes

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