wpcf7_verify_nonce()CF7 1.0

Verifies that a correct security nonce was used with time limit.

Хуков нет.


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


wpcf7_verify_nonce( $nonce, $action );
$nonce(строка) (обязательный)
Nonce value that was used for verification.
Context to what is taking place.
По умолчанию: 'wp_rest'

Код wpcf7_verify_nonce() CF7 5.6.3

function wpcf7_verify_nonce( $nonce, $action = 'wp_rest' ) {
	return wp_verify_nonce( $nonce, $action );