password_reset_key_expired хук-фильтрWP 3.7.0

old-style key is used.

Использование

add_filter( 'password_reset_key_expired', 'wp_kama_password_reset_key_expired_filter', 10, 2 );

/**
 * Function for `password_reset_key_expired` filter-hook.
 * 
 * @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.
 *
 * @return WP_Error
 */
function wp_kama_password_reset_key_expired_filter( $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.

Список изменений

С версии 3.7.0 Введена.
С версии 3.7.0 Previously plain-text keys were stored in the database.
С версии 4.3.0 Previously key hashes were stored without an expiration time.

Где вызывается хук

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

Где используется хук в WordPress

Использование не найдено.