WPCF7_FormTagsManager::normalize()publicCF7 1.0

Normalizes the text content that includes form-tags.

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

Хуков нет.

Возвращает

null. Ничего.

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

$WPCF7_FormTagsManager = new WPCF7_FormTagsManager();
$WPCF7_FormTagsManager->normalize( $content );
$content (обязательный)
-

Код WPCF7_FormTagsManager::normalize() CF7 5.6.4

public function normalize( $content ) {
	if ( empty( $this->tag_types ) ) {
		return $content;
	}

	$content = preg_replace_callback(
		'/' . $this->tag_regex() . '/s',
		array( $this, 'normalize_callback' ),
		$content
	);

	return $content;
}