Description
Filters the return value of check_password_reset_key() when an old-style key is used.
Occurrences
Filename | Line Number |
---|---|
wp-includes/user.php | 3078 |
Parameters
Type | Name | Description |
---|---|---|
WP_Error | $return | A WP_Error object denoting an expired key. Return a WP_User object to validate the key. |
int | $user_id | The matched user ID. |
PHP Doc
/**
* Filters the return value of check_password_reset_key() when an
* old-style key is used.
*
* @since 3.7.0 Previously plain-text keys were stored in the database.
* @since 4.3.0 Previously key hashes were stored without an expiration time.
*
* @param WP_Error $return A WP_Error object denoting an expired key.
* Return a WP_User object to validate the key.
* @param int $user_id The matched user ID.
*/