function wp_nonce_tick() {}

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.

Defined filters

  • nonce_life
    apply_filters('nonce_life', 86400)

Source code

function wp_nonce_tick() {

	$nonce_life = apply_filters('nonce_life', 86400);

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



No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: