WPCF7_FormTagsManager::tag_type_supports()
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() WPCF7 FormTagsManager::tag type supports CF7 5.7.6
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; }