password_reset_key_expired

Advertisement

Summery Summery

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

Syntax Syntax

apply_filters( 'password_reset_key_expired', WP_Error $return, int $user_id )

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

Source Source

File: wp-includes/user.php

Advertisement

Changelog Changelog

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

Advertisement

Leave a Reply