WordPress at a glance
filter is not described

password_reset_key_expired filter-hook . WP 3.7.0

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

Usage

add_filter( 'password_reset_key_expired', 'filter_function_name_1195', 10, 2 );
function filter_function_name_1195( $return, $user_id ){
	// filter...

	return $return;
}
$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.

Notes

  • 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.

Where the hook is called

check_password_reset_key()
wp-includes/user.php 2294
return apply_filters( 'password_reset_key_expired', $return, $user_id );

Where the hook is used (in WP core)

Does not used.