recovery_mode_email_link_ttl
Filter HookDescription
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.Hook Information
| File Location |
wp-includes/class-wp-recovery-mode.php
View on GitHub
|
| Hook Type | Filter |
| Line Number | 331 |
Hook Parameters
| Type | Name | Description |
|---|---|---|
int
|
$valid_for
|
The number of seconds the link is valid for. |
Usage Examples
Basic Usage
<?php
// Hook into recovery_mode_email_link_ttl
add_filter('recovery_mode_email_link_ttl', 'my_custom_filter', 10, 1);
function my_custom_filter($valid_for) {
// Your custom filtering logic here
return $valid_for;
}
Source Code Context
wp-includes/class-wp-recovery-mode.php:331
- How this hook is used in WordPress core
<?php
326 *
327 * @since 5.2.0
328 *
329 * @param int $valid_for The number of seconds the link is valid for.
330 */
331 $valid_for = apply_filters( 'recovery_mode_email_link_ttl', $valid_for );
332
333 return max( $valid_for, $rate_limit );
334 }
335
336 /**
PHP Documentation
<?php
/**
* 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.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-includes/class-wp-recovery-mode.php
Related Hooks
Related hooks will be displayed here in future updates.