Title: get_registered_theme_features
Published: August 11, 2020
Last modified: August 20, 2026

---

# get_registered_theme_features(): array[]

## In this article

 * [Return](https://developer.wordpress.org/reference/functions/get_registered_theme_features/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/functions/get_registered_theme_features/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/get_registered_theme_features/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/get_registered_theme_features/?output_format=md#changelog)

Gets the list of registered theme features.

## 󠀁[Return](https://developer.wordpress.org/reference/functions/get_registered_theme_features/?output_format=md#return)󠁿

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

## 󠀁[Source](https://developer.wordpress.org/reference/functions/get_registered_theme_features/?output_format=md#source)󠁿

    ```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;
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/theme.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-includes/theme.php#L3397)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/theme.php#L3397-L3405)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/get_registered_theme_features/?output_format=md#related)󠁿

| Used by | Description | 
| [WP_REST_Themes_Controller::prepare_item_for_response()](https://developer.wordpress.org/reference/classes/wp_rest_themes_controller/prepare_item_for_response/)`wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php` |

Prepares a single theme output for response.

  | 
| [WP_REST_Themes_Controller::get_item_schema()](https://developer.wordpress.org/reference/classes/wp_rest_themes_controller/get_item_schema/)`wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php` |

Retrieves the theme’s schema, conforming to JSON Schema.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/get_registered_theme_features/?output_format=md#changelog)󠁿

| Version | Description | 
| [5.5.0](https://developer.wordpress.org/reference/since/5.5.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fget_registered_theme_features%2F)
before being able to contribute a note or feedback.