apply_filters( 'nonce_life', int $lifespan , string|int $action )
Filters the lifespan of nonces in seconds.
Parameters
- $lifespan
-
Lifespan of nonces in seconds. Default 86,400 seconds, or one day.
- $action
-
The nonce action, or -1 if none was provided.
Source
Changelog
Version | Description |
---|---|
6.1.0 | Added $action argument to allow for more targeted filters. |
2.5.0 | Introduced. |