apply_filters( 'recovery_mode_email_link_ttl', int $valid_for )
- Since
- 5.2.0
Filters the amount of time the recovery mode email link is valid for.
Description
The ttl must be at least as long as the email rate limit.
Compatibility
- WordPress
- since 5.2.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$valid_forint- The number of seconds the link is valid for.
Where this hook fires · 1
wp-includes/class-wp-recovery-mode.php:331WP_Recovery_Mode::get_link_ttl()
Source code
* 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 ); } /** * Gets the extension that the error occurred in.Changelog
Introduced in 5.2.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.7.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.