nonce_life

nonce_life

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

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('nonce_life') is found 1 times:

  • /wp-includes/pluggable.php line 2293
    		 *
    		 * @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: