get_registered_theme_features()WP 5.5.0

Gets the list of registered theme features.

Хуков нет.

Возвращает

Массив[]. List of theme features, keyed by their name.

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

get_registered_theme_features();

Заметки

  • Global. Массив. $_wp_registered_theme_features

Список изменений

С версии 5.5.0 Введена.

Код get_registered_theme_features() WP 6.1.1

function get_registered_theme_features() {
	global $_wp_registered_theme_features;

	if ( ! is_array( $_wp_registered_theme_features ) ) {
		return array();
	}

	return $_wp_registered_theme_features;
}