recovery_mode_email_rate_limit
Filter HookDescription
Filters the rate limit between sending new recovery mode email links.Hook Information
File Location |
wp-includes/class-wp-recovery-mode.php
View on GitHub
|
Hook Type | Filter |
Line Number | 307 |
Hook Parameters
Type | Name | Description |
---|---|---|
int
|
$rate_limit
|
Time to wait in seconds. Defaults to 1 day. |
Usage Examples
Basic Usage
<?php
// Hook into recovery_mode_email_rate_limit
add_filter('recovery_mode_email_rate_limit', 'my_custom_filter', 10, 1);
function my_custom_filter($rate_limit) {
// Your custom filtering logic here
return $rate_limit;
}
Source Code Context
wp-includes/class-wp-recovery-mode.php:307
- How this hook is used in WordPress core
<?php
302 *
303 * @since 5.2.0
304 *
305 * @param int $rate_limit Time to wait in seconds. Defaults to 1 day.
306 */
307 return apply_filters( 'recovery_mode_email_rate_limit', DAY_IN_SECONDS );
308 }
309
310 /**
311 * Gets the number of seconds the recovery mode link is valid for.
312 *
PHP Documentation
<?php
/**
* Filters the rate limit between sending new recovery mode email links.
*
* @since 5.2.0
*
* @param int $rate_limit Time to wait in seconds. Defaults to 1 day.
*/
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.