WPCF7_FormTagsManager::tag_type_supports()publicCF7 1.0

Returns true if the tag type supports the features.

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

Хуков нет.

Возвращает

true|false. True if the form-tag type supports at least one of the given features, false otherwise.

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

$WPCF7_FormTagsManager = new WPCF7_FormTagsManager();
$WPCF7_FormTagsManager->tag_type_supports( $tag_type, $features );
$tag_type(строка) (обязательный)
The name of the form-tag type.
$features(массив|строка) (обязательный)
The feature to check or an array of features.

Код WPCF7_FormTagsManager::tag_type_supports() CF7 5.6.3

public function tag_type_supports( $tag_type, $features ) {
	$features = array_filter( (array) $features );

	if ( isset( $this->tag_types[$tag_type]['features'] ) ) {
		return (bool) array_intersect(
			array_keys( array_filter( $this->tag_types[$tag_type]['features'] ) ),
			$features
		);
	}

	return false;
}