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.
$action(строка)
Context to what is taking place.
По умолчанию: 'wp_rest'

Код wpcf7_verify_nonce() CF7 5.9.3

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