WPCF7_ContactForm::is_posted()
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() WPCF7 ContactForm::is posted CF7 6.0.5
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']; }