recovery_mode_cookie_length filter-hookWP 5.2.0

Filters the length of time a Recovery Mode cookie is valid for.

Usage

add_filter( 'recovery_mode_cookie_length', 'wp_kama_recovery_mode_cookie_length_filter' );

/**
 * Function for `recovery_mode_cookie_length` filter-hook.
 * 
 * @param int $length Length in seconds.
 *
 * @return int
 */
function wp_kama_recovery_mode_cookie_length_filter( $length ){

	// filter...
	return $length;
}
$length(int)
Length in seconds.

Changelog

Since 5.2.0 Introduced.

Where the hook is called

WP_Recovery_Mode_Cookie_Service::set_cookie()
recovery_mode_cookie_length
WP_Recovery_Mode_Cookie_Service::validate_cookie()
recovery_mode_cookie_length
wp-includes/class-wp-recovery-mode-cookie-service.php 45
$length = apply_filters( 'recovery_mode_cookie_length', WEEK_IN_SECONDS );
wp-includes/class-wp-recovery-mode-cookie-service.php 98
$length = apply_filters( 'recovery_mode_cookie_length', WEEK_IN_SECONDS );

Where the hook is used in WordPress

Usage not found.