Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




wp_nonce_tick [ WordPress Function ]

wp_nonce_tick ( No parameters )
Returns:
  • (int)
Defined at:



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.

Source


<?php
function wp_nonce_tick() {
    
$nonce_life apply_filters('nonce_life'86400);

    return 
ceil(time() / ( $nonce_life ));
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics