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.
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;
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |