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 ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



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