password_reset_expiration filter-hookWP 4.3.0

Filters the expiration time of password reset keys.

Usage

add_filter( 'password_reset_expiration', 'wp_kama_password_reset_expiration_filter' );

/**
 * Function for `password_reset_expiration` filter-hook.
 * 
 * @param int $expiration The expiration time in seconds.
 *
 * @return int
 */
function wp_kama_password_reset_expiration_filter( $expiration ){

	// filter...
	return $expiration;
}
$expiration(int)
The expiration time in seconds.

Changelog

Since 4.3.0 Introduced.

Where the hook is called

check_password_reset_key()
password_reset_expiration
wp-includes/user.php 3040
$expiration_duration = apply_filters( 'password_reset_expiration', DAY_IN_SECONDS );

Where the hook is used in WordPress

Usage not found.