W3cubDocs

/WordPress

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

$length = apply_filters( 'recovery_mode_cookie_length', WEEK_IN_SECONDS );

Changelog

Version Description
5.2.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/recovery_mode_cookie_length