WPCF7_ContactForm::nonce_is_active()publicCF7 1.0

Returns true if nonce is active for this contact form.

Метод класса: WPCF7_ContactForm{}

Хуки из метода

Возвращает

null. Ничего (null).

Использование

$WPCF7_ContactForm = new WPCF7_ContactForm();
$WPCF7_ContactForm->nonce_is_active();

Код WPCF7_ContactForm::nonce_is_active() CF7 5.9.3

public function nonce_is_active() {
	$is_active = WPCF7_VERIFY_NONCE;

	if ( $this->is_true( 'subscribers_only' ) ) {
		$is_active = true;
	}

	return (bool) apply_filters( 'wpcf7_verify_nonce', $is_active, $this );
}