Title: get_registered_theme_feature
Published: August 11, 2020
Last modified: May 20, 2026

---

# get_registered_theme_feature( string $feature ): array|null

## In this article

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

[ Back to top](https://developer.wordpress.org/reference/functions/get_registered_theme_feature/?output_format=md#wp--skip-link--target)

Gets the registration config for a theme feature.

## 󠀁[Parameters](https://developer.wordpress.org/reference/functions/get_registered_theme_feature/?output_format=md#parameters)󠁿

 `$feature`stringrequired

The feature name. See [add_theme_support()](https://developer.wordpress.org/reference/functions/add_theme_support/)
for the list of possible values.

More Arguments from add_theme_support( … $feature )

The feature being added. Likely core values include:

 * `'admin-bar'`
 * `'align-wide'`
 * `'appearance-tools'`
 * `'automatic-feed-links'`
 * `'block-templates'`
 * `'block-template-parts'`
 * `'border'`
 * `'core-block-patterns'`
 * `'custom-background'`
 * `'custom-header'`
 * `'custom-line-height'`
 * `'custom-logo'`
 * `'customize-selective-refresh-widgets'`
 * `'custom-spacing'`
 * `'custom-units'`
 * `'dark-editor-style'`
 * `'disable-custom-colors'`
 * `'disable-custom-font-sizes'`
 * `'disable-custom-gradients'`
 * `'disable-layout-styles'`
 * `'editor-color-palette'`
 * `'editor-gradient-presets'`
 * `'editor-font-sizes'`
 * `'editor-spacing-sizes'`
 * `'editor-styles'`
 * `'featured-content'`
 * `'html5'`
 * `'link-color'`
 * `'menus'`
 * `'post-formats'`
 * `'post-thumbnails'`
 * `'responsive-embeds'`
 * `'starter-content'`
 * `'title-tag'`
 * `'widgets'`
 * `'widgets-block-editor'`
 * `'wp-block-styles'`

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

 array|null The registration args, or null if the feature was not registered.

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

    ```php
    function get_registered_theme_feature( $feature ) {
    	global $_wp_registered_theme_features;

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

    	return $_wp_registered_theme_features[ $feature ] ?? null;
    }
    ```

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

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/get_registered_theme_feature/?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_feature%2F)
before being able to contribute a note or feedback.