On this page
apply_filters( 'recovery_mode_cookie_length', int $length )
Filters the length of time a Recovery Mode cookie is valid for.
Parameters
$lengthint-
Length in seconds.
Source
File: wp-includes/class-wp-recovery-mode-cookie-service.php. View all references
$length = apply_filters( 'recovery_mode_cookie_length', WEEK_IN_SECONDS );
Related
Used By
| Used By | Description |
|---|---|
| WP_Recovery_Mode_Cookie_Service::set_cookie() wp-includes/class-wp-recovery-mode-cookie-service.php | Sets the recovery mode cookie. |
| WP_Recovery_Mode_Cookie_Service::validate_cookie() wp-includes/class-wp-recovery-mode-cookie-service.php | Validates the recovery mode cookie. |
Changelog
| Version | Description |
|---|---|
| 5.2.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/recovery_mode_cookie_length