WPCF7_ContactForm::scan_form_tags()publicCF7 1.0

Scans form-tags from the form template.

Метод класса: WPCF7_ContactForm{}

Хуков нет.

Возвращает

Массив. Form-tags matching the given filter conditions.

Использование

$WPCF7_ContactForm = new WPCF7_ContactForm();
$WPCF7_ContactForm->scan_form_tags( $cond );
$cond(строка|массив|null)
Filters.
По умолчанию: null

Код WPCF7_ContactForm::scan_form_tags() CF7 5.9.3

public function scan_form_tags( $cond = null ) {
	$manager = WPCF7_FormTagsManager::get_instance();

	if ( empty( $this->scanned_form_tags ) ) {
		$this->scanned_form_tags = $manager->scan( $this->prop( 'form' ) );
	}

	$tags = $this->scanned_form_tags;

	return $manager->filter( $tags, $cond );
}