recovery_mode_email_link_ttl filter-hookWP 5.2.0

Filters the amount of time the recovery mode email link is valid for.

The ttl must be at least as long as the email rate limit.

Usage

add_filter( 'recovery_mode_email_link_ttl', 'wp_kama_recovery_mode_email_link_ttl_filter' );

/**
 * Function for `recovery_mode_email_link_ttl` filter-hook.
 * 
 * @param int $valid_for The number of seconds the link is valid for.
 *
 * @return int
 */
function wp_kama_recovery_mode_email_link_ttl_filter( $valid_for ){

	// filter...
	return $valid_for;
}
$valid_for(int)
The number of seconds the link is valid for.

Changelog

Since 5.2.0 Introduced.

Where the hook is called

WP_Recovery_Mode::get_link_ttl()
recovery_mode_email_link_ttl
wp-includes/class-wp-recovery-mode.php 331
$valid_for = apply_filters( 'recovery_mode_email_link_ttl', $valid_for );

Where the hook is used in WordPress

Usage not found.