wp_verify_nonce


wp_verify_nonce ( $nonce, $action = -1 )

Parameters:
  • (string) nonce Nonce value that was used for verification, usually via a form field.
  • (string|int) action 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.
Defined at:

Description

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

Related Functions

wp_explain_nonce, wp_version_check, wp_create_nonce, wp_recovery_mode, wp_tiny_mce

Top Google Results

User discussions

wpseek mobile