WordPress at a glance
function is not described

get_registered_theme_features() WP 5.5.0

Gets the list of registered theme features.

No Hooks.

Return

Array[]. List of theme features, keyed by their name.

Usage

get_registered_theme_features();

Notes

  • Global. Array. $_wp_registered_theme_features

Changelog

Since 5.5.0 Introduced.

Code of get_registered_theme_features() WP 5.7.2

<?php
function get_registered_theme_features() {
	global $_wp_registered_theme_features;

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

	return $_wp_registered_theme_features;
}