WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

get_post_types_by_support() WP 4.5.0

Retrieves a list of post type names that support a specific feature.

  • Global. Массив. $_wp_post_type_features Post type features

Хуков нет.

Возвращает

Массив. A list of post type names.

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

get_post_types_by_support( $feature, $operator );
$feature(массив/строка) (обязательный)
Single feature or an array of features the post types should support.
$operator(строка)
The logical operation to perform. 'or' means only one element from the array needs to match; 'and' means all elements must match; 'not' means no elements may match.
По умолчанию: 'and'

Код get post types by support: wp-includes/post.php VER 5.1.1

<?php
function get_post_types_by_support( $feature, $operator = 'and' ) {
	global $_wp_post_type_features;

	$features = array_fill_keys( (array) $feature, true );

	return array_keys( wp_filter_object_list( $_wp_post_type_features, $features, $operator ) );
}