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.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;
}