WPCF7_ContactForm::is_posted()publicCF7 1.0

Returns true if this contact form is identical to the submitted one.

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

Хуков нет.

Возвращает

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

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

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

Код WPCF7_ContactForm::is_posted() CF7 5.9.3

public function is_posted() {
	if ( ! WPCF7_Submission::get_instance() ) {
		return false;
	}

	if ( empty( $_POST['_wpcf7_unit_tag'] ) ) {
		return false;
	}

	return $this->unit_tag() === $_POST['_wpcf7_unit_tag'];
}