WPCF7_ContactForm::replace_all_form_tags
Replaces all form-tags in the form template with corresponding HTML.
Метод класса: WPCF7_ContactForm{}
Хуков нет.
Возвращает
Строку. Replaced form content.
Использование
$WPCF7_ContactForm = new WPCF7_ContactForm(); $WPCF7_ContactForm->replace_all_form_tags();
Код WPCF7_ContactForm::replace_all_form_tags() WPCF7 ContactForm::replace all form tags CF7 6.1.5
public function replace_all_form_tags() {
$manager = WPCF7_FormTagsManager::get_instance();
$form = $this->prop( 'form' );
if ( wpcf7_autop_or_not() ) {
$form = $manager->replace_with_placeholders( $form );
$form = wpcf7_autop( $form );
$form = $manager->restore_from_placeholders( $form );
}
$form = $manager->replace_all( $form );
$this->scanned_form_tags = $manager->get_scanned_tags();
return $form;
}