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 all references

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


Top ↑

Changelog

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

Top ↑

User Contributed Notes

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