Title: wp-includes/global-styles-and-settings.php | Developer.WordPress.org

---

# File: wp-includes/global-styles-and-settings.php

 * function[wp_get_theme_data_template_parts()](https://developer.wordpress.org/reference/functions/wp_get_theme_data_template_parts/)
 * Returns the metadata for the template parts defined by the theme.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/wp_get_theme_data_template_parts/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/functions/wp_get_theme_data_template_parts/#uses)
   | Source: [wp-includes/global-styles-and-settings.php:472](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/global-styles-and-settings.php#L472-L490)
 * function[wp_get_theme_data_custom_templates()](https://developer.wordpress.org/reference/functions/wp_get_theme_data_custom_templates/)
 * Returns the metadata for the custom templates defined by the theme via theme.
   json.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/wp_get_theme_data_custom_templates/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/wp_get_theme_data_custom_templates/#uses)
   | Source: [wp-includes/global-styles-and-settings.php:460](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/global-styles-and-settings.php#L460-L462)
 * function[wp_get_block_name_from_theme_json_path()](https://developer.wordpress.org/reference/functions/wp_get_block_name_from_theme_json_path/)
 * Gets the block name from a given theme.json path.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/wp_get_block_name_from_theme_json_path/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/functions/wp_get_block_name_from_theme_json_path/#uses)
   | Source: [wp-includes/global-styles-and-settings.php:355](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/global-styles-and-settings.php#L355-L382)
 * function[wp_get_theme_directory_pattern_slugs()](https://developer.wordpress.org/reference/functions/wp_get_theme_directory_pattern_slugs/)
 * Returns the current theme’s wanted patterns (slugs) to be registered from Pattern
   Directory.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/wp_get_theme_directory_pattern_slugs/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/wp_get_theme_directory_pattern_slugs/#uses)
   | Source: [wp-includes/global-styles-and-settings.php:448](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/global-styles-and-settings.php#L448-L450)
 * function[wp_get_block_css_selector()](https://developer.wordpress.org/reference/functions/wp_get_block_css_selector/)
 * Determines the CSS selector for the block type and property provided, returning
   it if available.
 * Used by [4 functions](https://developer.wordpress.org/reference/functions/wp_get_block_css_selector/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/functions/wp_get_block_css_selector/#uses)
   | Source: [wp-includes/global-styles-and-settings.php:504](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/global-styles-and-settings.php#L504-L595)
 * function[wp_theme_has_theme_json()](https://developer.wordpress.org/reference/functions/wp_theme_has_theme_json/)
 * Checks whether a theme or its parent has a theme.json file.
 * Used by [15 functions](https://developer.wordpress.org/reference/functions/wp_theme_has_theme_json/#used-by)
   | Uses [5 functions](https://developer.wordpress.org/reference/functions/wp_theme_has_theme_json/#uses)
   | Source: [wp-includes/global-styles-and-settings.php:391](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/global-styles-and-settings.php#L391-L423)
 * function[wp_clean_theme_json_cache()](https://developer.wordpress.org/reference/functions/wp_clean_theme_json_cache/)
 * Cleans the caches under the theme_json group.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_clean_theme_json_cache/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/wp_clean_theme_json_cache/#uses)
   | Source: [wp-includes/global-styles-and-settings.php:430](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/global-styles-and-settings.php#L430-L438)
 * function[wp_add_global_styles_for_blocks()](https://developer.wordpress.org/reference/functions/wp_add_global_styles_for_blocks/)
 * Adds global style rules to the inline style for each block.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/wp_add_global_styles_for_blocks/#used-by)
   | Uses [9 functions](https://developer.wordpress.org/reference/functions/wp_add_global_styles_for_blocks/#uses)
   | Source: [wp-includes/global-styles-and-settings.php:248](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/global-styles-and-settings.php#L248-L344)
 * function[wp_get_global_settings()](https://developer.wordpress.org/reference/functions/wp_get_global_settings/)
 * Gets the settings resulting of merging core, theme, and user data.
 * Used by [3 functions](https://developer.wordpress.org/reference/functions/wp_get_global_settings/#used-by)
   | Uses [5 functions](https://developer.wordpress.org/reference/functions/wp_get_global_settings/#uses)
   | Source: [wp-includes/global-styles-and-settings.php:26](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/global-styles-and-settings.php#L26-L84)
 * function[wp_get_global_styles()](https://developer.wordpress.org/reference/functions/wp_get_global_styles/)
 * Gets the styles resulting of merging core, theme, and user data.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_get_global_styles/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/functions/wp_get_global_styles/#uses)
   | Source: [wp-includes/global-styles-and-settings.php:111](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/global-styles-and-settings.php#L111-L131)
 * function[wp_get_global_stylesheet()](https://developer.wordpress.org/reference/functions/wp_get_global_stylesheet/)
 * Returns the stylesheet resulting of merging core, theme, and user data.
 * Used by [3 functions](https://developer.wordpress.org/reference/functions/wp_get_global_stylesheet/#used-by)
   | Uses [7 functions](https://developer.wordpress.org/reference/functions/wp_get_global_stylesheet/#uses)
   | Source: [wp-includes/global-styles-and-settings.php:148](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/global-styles-and-settings.php#L148-L238)