get_registered_theme_feature

The timeline below displays how wordpress function get_registered_theme_feature has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.5

/**
 * Gets the registration config for a theme feature.
 *
 * @since 5.5.0
 *
 * @global array $_wp_registered_theme_features
 *
 * @param string $feature The feature name. See add_theme_support() for the list
 *                        of possible values.
 * @return array|null The registration args, or null if the feature was not registered.
 */
function get_registered_theme_feature($feature)
{
    global $_wp_registered_theme_features;
    if (!is_array($_wp_registered_theme_features)) {
        return null;
    }
    return isset($_wp_registered_theme_features[$feature]) ? $_wp_registered_theme_features[$feature] : null;
}