nonce_life filter-hook . WP 2.5.0
Filters the lifespan of nonces in seconds.
Usage
add_filter( 'nonce_life', 'filter_function_name_2063' ); function filter_function_name_2063( $lifespan ){ // filter... return $lifespan; }
- $lifespan(int)
- Lifespan of nonces in seconds.
Default: 86,400 seconds, or one day
Changelog
Since 2.5.0 | Introduced. |
Where the hook is called
nonce_life
wp-includes/pluggable.php 2114
$nonce_life = apply_filters( 'nonce_life', DAY_IN_SECONDS );