recovery_mode_email_link_ttl хук-фильтрWP 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.

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

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.

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

С версии 5.2.0 Введена.

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

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

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

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