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

---

# @package: Theme

 * class[WP_Theme_JSON](https://developer.wordpress.org/reference/classes/wp_theme_json/)
 * Class that encapsulates the processing of structures that adhere to the theme.
   json spec.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/#uses)
   | Source: [wp-includes/class-wp-theme-json.php:20](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-theme-json.php#L20-L4631)
 * method[WP_Theme_JSON::get_merged_preset_by_slug()](https://developer.wordpress.org/reference/classes/wp_theme_json/get_merged_preset_by_slug/)
 * Given an array of presets keyed by origin and the value key of the preset, it
   returns an array where each key is the preset slug and each value the preset 
   value.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/get_merged_preset_by_slug/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_theme_json/get_merged_preset_by_slug/#uses)
   | Source: [wp-includes/class-wp-theme-json.php:680](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-theme-json.php#L680-L697)
 * function[create_initial_theme_features()](https://developer.wordpress.org/reference/functions/create_initial_theme_features/)
 * Creates the initial theme features when the ‘setup_theme’ action is fired.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/create_initial_theme_features/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/functions/create_initial_theme_features/#uses)
   | Source: [wp-includes/theme.php:3949](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L3949-L4357)
 * function[register_theme_feature()](https://developer.wordpress.org/reference/functions/register_theme_feature/)
 * Registers a theme feature for use in add_theme_support().
 * Used by [1 function](https://developer.wordpress.org/reference/functions/register_theme_feature/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/functions/register_theme_feature/#uses)
   | Source: [wp-includes/theme.php:3294](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L3294-L3399)
 * function[get_registered_theme_features()](https://developer.wordpress.org/reference/functions/get_registered_theme_features/)
 * Gets the list of registered theme features.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/get_registered_theme_features/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/functions/get_registered_theme_features/#uses)
   | Source: [wp-includes/theme.php:3410](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L3410-L3418)
 * function[get_registered_theme_feature()](https://developer.wordpress.org/reference/functions/get_registered_theme_feature/)
 * Gets the registration config for a theme feature.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/get_registered_theme_feature/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/functions/get_registered_theme_feature/#uses)
   | Source: [wp-includes/theme.php:3431](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L3431-L3439)
 * function[validate_theme_requirements()](https://developer.wordpress.org/reference/functions/validate_theme_requirements/)
 * Validates the theme requirements for WordPress version and PHP version.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/validate_theme_requirements/#used-by)
   | Uses [6 functions](https://developer.wordpress.org/reference/functions/validate_theme_requirements/#uses)
   | Source: [wp-includes/theme.php:965](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L965-L1019)
 * hook[header_video_settings](https://developer.wordpress.org/reference/hooks/header_video_settings/)
 * Filters header video settings.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/header_video_settings/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/header_video_settings/#uses)
   | Source: [wp-includes/theme.php:1749](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L1749-L1749)
 * function[_wp_keep_alive_customize_changeset_dependent_auto_drafts()](https://developer.wordpress.org/reference/functions/_wp_keep_alive_customize_changeset_dependent_auto_drafts/)
 * Makes sure that auto-draft posts get their post_date bumped or status changed
   to draft to prevent premature garbage-collection.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/_wp_keep_alive_customize_changeset_dependent_auto_drafts/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/functions/_wp_keep_alive_customize_changeset_dependent_auto_drafts/#uses)
   | Source: [wp-includes/theme.php:3877](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L3877-L3939)
 * hook[get_header_video_url](https://developer.wordpress.org/reference/hooks/get_header_video_url/)
 * Filters the header video URL.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/get_header_video_url/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/get_header_video_url/#uses)
   | Source: [wp-includes/theme.php:1686](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L1686-L1686)
 * function[_wp_customize_publish_changeset()](https://developer.wordpress.org/reference/functions/_wp_customize_publish_changeset/)
 * Publishes a snapshot’s changes.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/_wp_customize_publish_changeset/#used-by)
   | Uses [5 functions](https://developer.wordpress.org/reference/functions/_wp_customize_publish_changeset/#uses)
   | Source: [wp-includes/theme.php:3652](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L3652-L3711)
 * function[_wp_customize_changeset_filter_insert_post_data()](https://developer.wordpress.org/reference/functions/_wp_customize_changeset_filter_insert_post_data/)
 * Filters changeset post data upon insert to ensure post_name is intact.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/_wp_customize_changeset_filter_insert_post_data/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/functions/_wp_customize_changeset_filter_insert_post_data/#uses)
   | Source: [wp-includes/theme.php:3727](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L3727-L3736)
 * hook[get_theme_starter_content](https://developer.wordpress.org/reference/hooks/get_theme_starter_content/)
 * Filters the expanded array of starter content.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/get_theme_starter_content/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/get_theme_starter_content/#uses)
   | Source: [wp-includes/theme.php:2610](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L2610-L2610)
 * function[get_theme_starter_content()](https://developer.wordpress.org/reference/functions/get_theme_starter_content/)
 * Expands a theme’s starter content configuration using core-provided data.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/get_theme_starter_content/#used-by)
   | Uses [5 functions](https://developer.wordpress.org/reference/functions/get_theme_starter_content/#uses)
   | Source: [wp-includes/theme.php:2293](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L2293-L2611)
 * hook[wp_get_custom_css](https://developer.wordpress.org/reference/hooks/wp_get_custom_css/)
 * Filters the custom CSS output into the head element.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wp_get_custom_css/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_get_custom_css/#uses)
   | Source: [wp-includes/theme.php:2062](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L2062-L2062)
 * function[wp_update_custom_css_post()](https://developer.wordpress.org/reference/functions/wp_update_custom_css_post/)
 * Updates the `custom_css` post for a given theme.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/wp_update_custom_css_post/#used-by)
   | Uses [13 functions](https://developer.wordpress.org/reference/functions/wp_update_custom_css_post/#uses)
   | Source: [wp-includes/theme.php:2085](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L2085-L2170)
 * hook[update_custom_css_data](https://developer.wordpress.org/reference/hooks/update_custom_css_data/)
 * Filters the `css` (`post_content`) and `preprocessed` (`post_content_filtered`)
   args for a `custom_css` post being updated.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/update_custom_css_data/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/update_custom_css_data/#uses)
   | Source: [wp-includes/theme.php:2134](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L2134-L2134)
 * function[wp_custom_css_cb()](https://developer.wordpress.org/reference/functions/wp_custom_css_cb/)
 * Renders the Custom CSS style element.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_custom_css_cb/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/functions/wp_custom_css_cb/#uses)
   | Source: [wp-includes/theme.php:1968](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L1968-L1981)
 * function[wp_get_custom_css_post()](https://developer.wordpress.org/reference/functions/wp_get_custom_css_post/)
 * Fetches the `custom_css` post for a given theme.
 * Used by [3 functions](https://developer.wordpress.org/reference/functions/wp_get_custom_css_post/#used-by)
   | Uses [7 functions](https://developer.wordpress.org/reference/functions/wp_get_custom_css_post/#uses)
   | Source: [wp-includes/theme.php:1991](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L1991-L2032)
 * function[wp_get_custom_css()](https://developer.wordpress.org/reference/functions/wp_get_custom_css/)
 * Fetches the saved Custom CSS content for rendering.
 * Used by [3 functions](https://developer.wordpress.org/reference/functions/wp_get_custom_css/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/functions/wp_get_custom_css/#uses)
   | Source: [wp-includes/theme.php:2042](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L2042-L2065)
 * function[get_custom_header_markup()](https://developer.wordpress.org/reference/functions/get_custom_header_markup/)
 * Retrieves the markup for a custom header.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/get_custom_header_markup/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/functions/get_custom_header_markup/#uses)
   | Source: [wp-includes/theme.php:1808](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L1808-L1817)
 * function[the_custom_header_markup()](https://developer.wordpress.org/reference/functions/the_custom_header_markup/)
 * Prints the markup for a custom header.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/the_custom_header_markup/#used-by)
   | Uses [7 functions](https://developer.wordpress.org/reference/functions/the_custom_header_markup/#uses)
   | Source: [wp-includes/theme.php:1826](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L1826-L1838)
 * hook[is_header_video_active](https://developer.wordpress.org/reference/hooks/is_header_video_active/)
 * Filters whether the custom header video is eligible to show on the current page.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/is_header_video_active/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/is_header_video_active/#uses)
   | Source: [wp-includes/theme.php:1796](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L1796-L1796)
 * function[has_header_video()](https://developer.wordpress.org/reference/functions/has_header_video/)
 * Checks whether a header video is set or not.
 * Used by [3 functions](https://developer.wordpress.org/reference/functions/has_header_video/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/has_header_video/#uses)
   | Source: [wp-includes/theme.php:1656](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L1656-L1658)
 * function[get_header_video_url()](https://developer.wordpress.org/reference/functions/get_header_video_url/)
 * Retrieves header video URL for custom header.
 * Used by [3 functions](https://developer.wordpress.org/reference/functions/get_header_video_url/#used-by)
   | Uses [6 functions](https://developer.wordpress.org/reference/functions/get_header_video_url/#uses)
   | Source: [wp-includes/theme.php:1669](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L1669-L1693)
 * function[the_header_video_url()](https://developer.wordpress.org/reference/functions/the_header_video_url/)
 * Displays header video URL.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/the_header_video_url/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/the_header_video_url/#uses)
   | Source: [wp-includes/theme.php:1700](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L1700-L1706)
 * function[get_header_video_settings()](https://developer.wordpress.org/reference/functions/get_header_video_settings/)
 * Retrieves header video settings.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/get_header_video_settings/#used-by)
   | Uses [8 functions](https://developer.wordpress.org/reference/functions/get_header_video_settings/#uses)
   | Source: [wp-includes/theme.php:1715](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L1715-L1750)
 * function[has_custom_header()](https://developer.wordpress.org/reference/functions/has_custom_header/)
 * Checks whether a custom header is set or not.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/has_custom_header/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/functions/has_custom_header/#uses)
   | Source: [wp-includes/theme.php:1759](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L1759-L1765)
 * function[is_header_video_active()](https://developer.wordpress.org/reference/functions/is_header_video_active/)
 * Checks whether the custom header video is eligible to show on the current page.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/is_header_video_active/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/is_header_video_active/#uses)
   | Source: [wp-includes/theme.php:1774](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L1774-L1797)
 * function[_custom_logo_header_styles()](https://developer.wordpress.org/reference/functions/_custom_logo_header_styles/)
 * Adds CSS to hide header text for custom logo, based on Customizer setting.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/_custom_logo_header_styles/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/functions/_custom_logo_header_styles/#uses)
   | Source: [wp-includes/theme.php:3001](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L3001-L3021)

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

[1](https://developer.wordpress.org/reference/package/theme/?output_format=md) …
[3](https://developer.wordpress.org/reference/package/theme/page/3/?output_format=md)
[4](https://developer.wordpress.org/reference/package/theme/page/4/?output_format=md)
5 [6](https://developer.wordpress.org/reference/package/theme/page/6/?output_format=md)
[7](https://developer.wordpress.org/reference/package/theme/page/7/?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/6/?output_format=md)