nonce_life

nonce_life

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('nonce_life') is found 1 times:

  • /wp-includes/pluggable.php line 2334
    2330
    2331
    2332
    2333
    2334
    2335
    2336
    2337
    2338
    2339
    2340
             *
             * @param int        $lifespan Lifespan of nonces in seconds. Default 86,400 seconds, or one day.
             * @param string|int $action   The nonce action, or -1 if none was provided.
             */
            $nonce_life = apply_filters( 'nonce_life', DAY_IN_SECONDS, $action );
     
            return ceil( time() / ( $nonce_life / 2 ) );
        }
    endif;
     
    if ( ! function_exists( 'wp_verify_nonce' ) ) :

See this hook used in plugins: