WP_Recovery_Mode::get_link_ttl() WordPress Method
This is the method for getting the link time to live for a given user. It is used to determine how long a user has to click on a link before it expires.
WP_Recovery_Mode::get_link_ttl() #
Gets the number of seconds the recovery mode link is valid for.
Return
(int) Interval in seconds.
Source
File: wp-includes/class-wp-recovery-mode.php
protected function get_link_ttl() { $rate_limit = $this->get_email_rate_limit(); $valid_for = $rate_limit; /** * 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. * * @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 ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
5.2.0 | Introduced. |