On this page
apply_filters( 'nonce_life', int $lifespan, string|int $action )
Filters the lifespan of nonces in seconds.
Parameters
$lifespanint-
Lifespan of nonces in seconds. Default 86,400 seconds, or one day.
$actionstring|int-
The nonce action, or -1 if none was provided.
Source
File: wp-includes/pluggable.php. View all references
$nonce_life = apply_filters( 'nonce_life', DAY_IN_SECONDS, $action );
Related
Used By
| Used By | Description |
|---|---|
| wp_nonce_tick() wp-includes/pluggable.php | Returns the time-dependent variable for nonce creation. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/nonce_life