Title: Theme | Page 4 of 8 | Developer.WordPress.org

---

# @package: Theme

 * method[WP_Theme_JSON_Resolver::get_merged_data()](https://developer.wordpress.org/reference/classes/wp_theme_json_resolver/get_merged_data/)
 * Returns the data merged from multiple origins.
 * Used by [9 functions](https://developer.wordpress.org/reference/classes/wp_theme_json_resolver/get_merged_data/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/classes/wp_theme_json_resolver/get_merged_data/#uses)
   | Source: [wp-includes/class-wp-theme-json-resolver.php:652](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-theme-json-resolver.php#L652-L676)
 * class[WP_Theme_JSON_Resolver](https://developer.wordpress.org/reference/classes/wp_theme_json_resolver/)
 * Class that abstracts the processing of the different data sources for site-level
   config and offers an API to work with them.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json_resolver/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json_resolver/#uses)
   | Source: [wp-includes/class-wp-theme-json-resolver.php:21](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-theme-json-resolver.php#L21-L1025)
 * method[WP_Theme_JSON_Resolver::read_json_file()](https://developer.wordpress.org/reference/classes/wp_theme_json_resolver/read_json_file/)
 * Processes a file that adheres to the theme.json schema and returns an array with
   its contents, or a void array if none found.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wp_theme_json_resolver/read_json_file/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_theme_json_resolver/read_json_file/#uses)
   | Source: [wp-includes/class-wp-theme-json-resolver.php:104](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-theme-json-resolver.php#L104-L118)
 * method[WP_Theme_JSON_Resolver::extract_paths_to_translate()](https://developer.wordpress.org/reference/classes/wp_theme_json_resolver/extract_paths_to_translate/)
 * Converts a tree as in i18n-theme.json into a linear array containing metadata
   to translate a theme.json file.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json_resolver/extract_paths_to_translate/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json_resolver/extract_paths_to_translate/#uses)
   | Source: [wp-includes/class-wp-theme-json-resolver.php:119](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-theme-json-resolver.php#L119-L138)
 * method[WP_Theme_JSON_Resolver::get_fields_to_translate()](https://developer.wordpress.org/reference/classes/wp_theme_json_resolver/get_fields_to_translate/)
 * Returns a data structure used in theme.json translation.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json_resolver/get_fields_to_translate/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_theme_json_resolver/get_fields_to_translate/#uses)
   | Source: [wp-includes/class-wp-theme-json-resolver.php:128](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-theme-json-resolver.php#L128-L131)
 * method[WP_Theme_JSON_Resolver::translate_theme_json_chunk()](https://developer.wordpress.org/reference/classes/wp_theme_json_resolver/translate_theme_json_chunk/)
 * Translates a chunk of the loaded theme.json structure.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json_resolver/translate_theme_json_chunk/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json_resolver/translate_theme_json_chunk/#uses)
   | Source: [wp-includes/class-wp-theme-json-resolver.php:166](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-theme-json-resolver.php#L166-L177)
 * method[WP_Theme_JSON_Resolver::translate()](https://developer.wordpress.org/reference/classes/wp_theme_json_resolver/translate/)
 * Given a theme.json structure modifies it in place to update certain values by
   its translated strings according to the language set by the user.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json_resolver/translate/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/classes/wp_theme_json_resolver/translate/#uses)
   | Source: [wp-includes/class-wp-theme-json-resolver.php:144](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-theme-json-resolver.php#L144-L151)
 * method[WP_Theme_JSON_Resolver::get_core_data()](https://developer.wordpress.org/reference/classes/wp_theme_json_resolver/get_core_data/)
 * Returns core’s origin config.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json_resolver/get_core_data/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/classes/wp_theme_json_resolver/get_core_data/#uses)
   | Source: [wp-includes/class-wp-theme-json-resolver.php:160](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-theme-json-resolver.php#L160-L189)
 * method[WP_Theme_JSON::get_raw_data()](https://developer.wordpress.org/reference/classes/wp_theme_json/get_raw_data/)
 * Returns the raw data.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/get_raw_data/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/get_raw_data/#uses)
   | Source: [wp-includes/class-wp-theme-json.php:3817](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-theme-json.php#L3817-L3819)
 * method[WP_Theme_JSON::get_from_editor_settings()](https://developer.wordpress.org/reference/classes/wp_theme_json/get_from_editor_settings/)
 * Transforms the given editor settings according the add_theme_support format to
   the theme.json format.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wp_theme_json/get_from_editor_settings/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/get_from_editor_settings/#uses)
   | Source: [wp-includes/class-wp-theme-json.php:3830](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-theme-json.php#L3830-L3887)
 * method[WP_Theme_JSON::compute_theme_vars()](https://developer.wordpress.org/reference/classes/wp_theme_json/compute_theme_vars/)
 * Given an array of settings, extracts the CSS Custom Properties for the custom
   values and adds them to the $declarations array following the format:
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/compute_theme_vars/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/compute_theme_vars/#uses)
   | Source: [wp-includes/class-wp-theme-json.php:2235](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-theme-json.php#L2235-L2247)
 * method[WP_Theme_JSON::flatten_tree()](https://developer.wordpress.org/reference/classes/wp_theme_json/flatten_tree/)
 * Given a tree, it creates a flattened one by merging the keys and binding the 
   leaf values to the new keys.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/flatten_tree/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_theme_json/flatten_tree/#uses)
   | Source: [wp-includes/class-wp-theme-json.php:2286](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-theme-json.php#L2286-L2306)
 * method[WP_Theme_JSON::compute_style_properties()](https://developer.wordpress.org/reference/classes/wp_theme_json/compute_style_properties/)
 * Given a styles array, it extracts the style properties and adds them to the $
   declarations array following the format:
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/compute_style_properties/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/compute_style_properties/#uses)
   | Source: [wp-includes/class-wp-theme-json.php:2332](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-theme-json.php#L2332-L2446)
 * method[WP_Theme_JSON::has_properties()](https://developer.wordpress.org/reference/classes/wp_theme_json/has_properties/)
 * Whether the metadata contains a key named properties.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/has_properties/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/has_properties/#uses)
   | Source: [wp-includes/class-wp-theme-json.php:922](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-theme-json.php#L922-L928)
 * method[WP_Theme_JSON::get_property_value()](https://developer.wordpress.org/reference/classes/wp_theme_json/get_property_value/)
 * Returns the style property for the given path.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/get_property_value/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/get_property_value/#uses)
   | Source: [wp-includes/class-wp-theme-json.php:2469](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-theme-json.php#L2469-L2517)
 * method[WP_Theme_JSON::get_setting_nodes()](https://developer.wordpress.org/reference/classes/wp_theme_json/get_setting_nodes/)
 * Builds metadata for the setting nodes, which returns in the form of:
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/get_setting_nodes/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/get_setting_nodes/#uses)
   | Source: [wp-includes/class-wp-theme-json.php:2539](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-theme-json.php#L2539-L2569)
 * method[WP_Theme_JSON::get_style_nodes()](https://developer.wordpress.org/reference/classes/wp_theme_json/get_style_nodes/)
 * Builds metadata for the style nodes, which returns in the form of:
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/get_style_nodes/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_theme_json/get_style_nodes/#uses)
   | Source: [wp-includes/class-wp-theme-json.php:2599](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-theme-json.php#L2599-L2656)
 * method[WP_Theme_JSON::merge()](https://developer.wordpress.org/reference/classes/wp_theme_json/merge/)
 * Merges new incoming data.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/merge/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/merge/#uses)
   | Source: [wp-includes/class-wp-theme-json.php:3176](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-theme-json.php#L3176-L3327)
 * method[WP_Theme_JSON::__construct()](https://developer.wordpress.org/reference/classes/wp_theme_json/__construct/)
 * Constructor.
 * Used by [12 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/__construct/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/__construct/#uses)
   | Source: [wp-includes/class-wp-theme-json.php:770](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-theme-json.php#L770-L822)
 * method[WP_Theme_JSON::compute_preset_classes()](https://developer.wordpress.org/reference/classes/wp_theme_json/compute_preset_classes/)
 * Given a settings array, returns the generated rulesets for the preset classes.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/compute_preset_classes/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/compute_preset_classes/#uses)
   | Source: [wp-includes/class-wp-theme-json.php:1955](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-theme-json.php#L1955-L1991)
 * method[WP_Theme_JSON::sanitize()](https://developer.wordpress.org/reference/classes/wp_theme_json/sanitize/)
 * Sanitizes the input according to the schemas.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/sanitize/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/sanitize/#uses)
   | Source: [wp-includes/class-wp-theme-json.php:955](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-theme-json.php#L955-L1076)
 * method[WP_Theme_JSON::compute_preset_vars()](https://developer.wordpress.org/reference/classes/wp_theme_json/compute_preset_vars/)
 * Given the block settings, extracts the CSS Custom Properties for the presets 
   and adds them to the $declarations array following the format:
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/compute_preset_vars/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/compute_preset_vars/#uses)
   | Source: [wp-includes/class-wp-theme-json.php:2202](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-theme-json.php#L2202-L2218)
 * method[WP_Theme_JSON::get_blocks_metadata()](https://developer.wordpress.org/reference/classes/wp_theme_json/get_blocks_metadata/)
 * Returns the metadata for each block.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/get_blocks_metadata/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/get_blocks_metadata/#uses)
   | Source: [wp-includes/class-wp-theme-json.php:1162](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-theme-json.php#L1162-L1241)
 * method[WP_Theme_JSON::remove_keys_not_in_schema()](https://developer.wordpress.org/reference/classes/wp_theme_json/remove_keys_not_in_schema/)
 * Given a tree, removes the keys that are not present in the schema.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wp_theme_json/remove_keys_not_in_schema/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/remove_keys_not_in_schema/#uses)
   | Source: [wp-includes/class-wp-theme-json.php:1254](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-theme-json.php#L1254-L1290)
 * method[WP_Theme_JSON::get_settings()](https://developer.wordpress.org/reference/classes/wp_theme_json/get_settings/)
 * Returns the existing settings for each block.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/get_settings/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/get_settings/#uses)
   | Source: [wp-includes/class-wp-theme-json.php:1314](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-theme-json.php#L1314-L1320)
 * method[WP_Theme_JSON::get_stylesheet()](https://developer.wordpress.org/reference/classes/wp_theme_json/get_stylesheet/)
 * Returns the stylesheet that results of processing the theme.json structure this
   object represents.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/get_stylesheet/#used-by)
   | Uses [7 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/get_stylesheet/#uses)
   | Source: [wp-includes/class-wp-theme-json.php:1349](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-theme-json.php#L1349-L1452)
 * method[WP_Theme_JSON::get_block_styles()](https://developer.wordpress.org/reference/classes/wp_theme_json/get_block_styles/)
 * Converts each style section into a list of rulesets containing the block styles
   to be appended to the stylesheet.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/get_block_styles/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/get_block_styles/#uses)
   | Source: [wp-includes/class-wp-theme-json.php:558](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-theme-json.php#L558-L583)
 * method[WP_Theme_JSON::get_css_variables()](https://developer.wordpress.org/reference/classes/wp_theme_json/get_css_variables/)
 * Converts each styles section into a list of rulesets to be appended to the stylesheet.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wp_theme_json/get_css_variables/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_theme_json/get_css_variables/#uses)
   | Source: [wp-includes/class-wp-theme-json.php:1895](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-theme-json.php#L1895-L1915)
 * method[WP_Theme_JSON::to_ruleset()](https://developer.wordpress.org/reference/classes/wp_theme_json/to_ruleset/)
 * Given a selector and a declaration list, creates the corresponding ruleset.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/to_ruleset/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/to_ruleset/#uses)
   | Source: [wp-includes/class-wp-theme-json.php:1927](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-theme-json.php#L1927-L1940)
 * method[WP_Theme_JSON::append_to_selector()](https://developer.wordpress.org/reference/classes/wp_theme_json/append_to_selector/)
 * Appends a sub-selector to an existing one.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/append_to_selector/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/append_to_selector/#uses)
   | Source: [wp-includes/class-wp-theme-json.php:1093](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-theme-json.php#L1093-L1103)

 [Previous Page](https://developer.wordpress.org/reference/package/theme/page/3/?output_format=md)

[1](https://developer.wordpress.org/reference/package/theme/?output_format=md) [2](https://developer.wordpress.org/reference/package/theme/page/2/?output_format=md)
[3](https://developer.wordpress.org/reference/package/theme/page/3/?output_format=md)
4 [5](https://developer.wordpress.org/reference/package/theme/page/5/?output_format=md)
[6](https://developer.wordpress.org/reference/package/theme/page/6/?output_format=md)…
[8](https://developer.wordpress.org/reference/package/theme/page/8/?output_format=md)

 [Next Page](https://developer.wordpress.org/reference/package/theme/page/5/?output_format=md)