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
Source
File: wp-includes/user.php
Changelog
Version | Description |
---|---|
4.3.0 | Previously key hashes were stored without an expiration time. |
3.7.0 | Introduced. |