WPCF7_ContactForm::is_postedpublicCF7 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 6.1.6

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

	$unit_tag = wpcf7_superglobal_post( '_wpcf7_unit_tag' );

	if ( empty( $unit_tag ) ) {
		return false;
	}

	return $this->unit_tag() === $unit_tag;
}