WordPress at a glance
function is not described

WP_Recovery_Mode::get_link_ttl() protected WP 5.2.0

Gets the number of seconds the recovery mode link is valid for.

{} It's a method of the class: WP_Recovery_Mode{}

Hooks from the method
Return

Int. Interval in seconds.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_link_ttl();

Changelog

Since 5.2.0 Introduced.

Code of WP_Recovery_Mode::get_link_ttl() WP 5.5.1

<?php
protected function get_link_ttl() {

	$rate_limit = $this->get_email_rate_limit();
	$valid_for  = $rate_limit;

	/**
	 * Filter 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.
	 *
	 * @since 5.2.0
	 *
	 * @param int $valid_for The number of seconds the link is valid for.
	 */
	$valid_for = apply_filters( 'recovery_mode_email_link_ttl', $valid_for );

	return max( $valid_for, $rate_limit );
}