get_registered_theme_features() WordPress Function

The get_registered_theme_features() function is used to get an array of theme features (also known as theme support) that have been registered by the currently active theme.

get_registered_theme_features() #

Gets the list of registered theme features.


Return

(array[]) List of theme features, keyed by their name.


Top ↑

Source

File: wp-includes/theme.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;
}


Top ↑

Changelog

Changelog
VersionDescription
5.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More