WPCF7_FormTagsManager::tag_regexprivateCF7 1.0

Returns the regular expression for a form-tag.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

// private - только в коде основоного (родительского) класса
$result = $this->tag_regex();

Код WPCF7_FormTagsManager::tag_regex() CF7 6.1.5

private function tag_regex() {
	$tag_types = implode( '|',
		array_map( 'preg_quote', array_keys( $this->tag_types ) )
	);

	$whitespaces = wpcf7_get_unicode_whitespaces();

	return '(\[?)'
		. '\[(' . $tag_types . ')'
		. '(?:[' . $whitespaces . ']+(.*?))?'
		. '(?:[' . $whitespaces . ']+(\/))?\]'
		. '(?:([^[]*?)\[\/\2\])?'
		. '(\]?)';
}