Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

wp_verify_nonce()

3 tags 1 category

wp_verify_nonce() — Verifies that a correct security nonce was used with time limit. A nonce is valid for between 12 and 24 hours (by default).

Inputs: $nonce (string): Nonce value that was used for verification, usually via a form field. $action (string|int): Should give context to what is taking place and be the same when nonce was created.

Returns int|false: 1 if the nonce is valid and generated between 0-12 hours ago, 2 if the nonce is valid and generated between 12-24 hours ago. False if the nonce is invalid.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…