wp_verify_nonce


wp_verify_nonce ( $nonce, $action = -1 )

Parameters:
  • (string) $nonce Nonce that was used in the form to verify
  • (string|int) $action Should give context to what is taking place and be the same when nonce was created.
Returns:
  • (false|int) False if the nonce is invalid, 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.
Defined at:

Description

Verify that correct nonce was used with time limit.

The user is given an amount of time to use the token, so therefore, since the UID and $action remain the same, the independent variable is the time.

Related Functions

wp_explain_nonce, wp_version_check, wp_create_nonce, wp_tiny_mce, wp_kses_version

Top Google Results

User discussions

wpseek mobile