user_request_key_expiration filter-hookWP 4.9.6

Filters the expiration time of confirm keys.

Usage

add_filter( 'user_request_key_expiration', 'wp_kama_user_request_key_expiration_filter' );

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

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

Changelog

Since 4.9.6 Introduced.

Where the hook is called

wp_validate_user_request_key()
user_request_key_expiration
_wp_personal_data_cleanup_requests()
user_request_key_expiration
wp-includes/user.php 4837
$expiration_duration = (int) apply_filters( 'user_request_key_expiration', DAY_IN_SECONDS );
wp-admin/includes/privacy-tools.php 197
$expires = (int) apply_filters( 'user_request_key_expiration', DAY_IN_SECONDS );

Where the hook is used in WordPress

Usage not found.