WordPress at a glance
function is not described

wp_nonce_tick() WP 2.5.0

Get the time-dependent variable for nonce creation.

A nonce has a lifespan of two ticks. Nonces in their second tick may be updated, e.g. by autosave.

This is a pluggable function, and it can be replaced from plugin. It means that this function is defined (works) only after all plugins are connected (included), but before this moment the function has not yet been defined... Therefore, you cannot call this and all functions depended on this function directly from a plugin code. It must be called via hook plugins_loaded or later, for example on hook init.

Function replacement (override) — in a plugin you can create a function with the same name, then it will replace this function.

Hooks in function

float. Float value rounded up to the next highest integer.



Code of wp nonce tick: wp-includes/pluggable.php VER 5.0.3

function wp_nonce_tick() {
	 * Filters the lifespan of nonces in seconds.
	 * @since 2.5.0
	 * @param int $lifespan Lifespan of nonces in seconds. Default 86,400 seconds, or one day.
	$nonce_life = apply_filters( 'nonce_life', DAY_IN_SECONDS );

	return ceil(time() / ( $nonce_life / 2 ));