WPCF7_ContactForm::is_posted() public CF7 1.0
Return true if this form is the same one as currently POSTed.
{} Это метод класса: WPCF7_ContactForm{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$WPCF7_ContactForm = new WPCF7_ContactForm(); $WPCF7_ContactForm->is_posted();
Код WPCF7_ContactForm::is_posted() WPCF7 ContactForm::is posted CF7 5.4
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'];
}