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

---

# @package: Theme

 * function[set_theme_mod()](https://developer.wordpress.org/reference/functions/set_theme_mod/)
 * Updates theme modification value for the active theme.
 * Used by [15 functions](https://developer.wordpress.org/reference/functions/set_theme_mod/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/functions/set_theme_mod/#uses)
   | Source: [wp-includes/theme.php:1108](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L1108-L1129)
 * function[header_image()](https://developer.wordpress.org/reference/functions/header_image/)
 * Displays header image URL.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/header_image/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/header_image/#uses)
   | Source: [wp-includes/theme.php:1498](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L1498-L1504)
 * hook[pre_set_theme_mod_{$name}](https://developer.wordpress.org/reference/hooks/pre_set_theme_mod_name/)
 * Filters the theme modification, or ‘theme_mod’, value on save.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/pre_set_theme_mod_name/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/pre_set_theme_mod_name/#uses)
   | Source: [wp-includes/theme.php:1124](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L1124-L1124)
 * function[get_uploaded_header_images()](https://developer.wordpress.org/reference/functions/get_uploaded_header_images/)
 * Gets the header images uploaded for the active theme.
 * Used by [6 functions](https://developer.wordpress.org/reference/functions/get_uploaded_header_images/#used-by)
   | Uses [6 functions](https://developer.wordpress.org/reference/functions/get_uploaded_header_images/#uses)
   | Source: [wp-includes/theme.php:1513](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L1513-L1556)
 * function[remove_theme_mod()](https://developer.wordpress.org/reference/functions/remove_theme_mod/)
 * Removes theme modification name from active theme list.
 * Used by [5 functions](https://developer.wordpress.org/reference/functions/remove_theme_mod/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/functions/remove_theme_mod/#uses)
   | Source: [wp-includes/theme.php:1141](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L1141-L1158)
 * function[get_custom_header()](https://developer.wordpress.org/reference/functions/get_custom_header/)
 * Gets the header image data.
 * Used by [3 functions](https://developer.wordpress.org/reference/functions/get_custom_header/#used-by)
   | Uses [8 functions](https://developer.wordpress.org/reference/functions/get_custom_header/#uses)
   | Source: [wp-includes/theme.php:1567](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L1567-L1601)
 * function[remove_theme_mods()](https://developer.wordpress.org/reference/functions/remove_theme_mods/)
 * Removes theme modifications option for the active theme.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/remove_theme_mods/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/functions/remove_theme_mods/#uses)
   | Source: [wp-includes/theme.php:1165](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L1165-L1175)
 * function[register_default_headers()](https://developer.wordpress.org/reference/functions/register_default_headers/)
 * Registers a selection of default headers to be displayed by the custom header
   admin UI.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/register_default_headers/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/functions/register_default_headers/#uses)
   | Source: [wp-includes/theme.php:1613](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L1613-L1617)
 * function[get_header_textcolor()](https://developer.wordpress.org/reference/functions/get_header_textcolor/)
 * Retrieves the custom header text color in 3- or 6-digit hexadecimal form.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/get_header_textcolor/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/get_header_textcolor/#uses)
   | Source: [wp-includes/theme.php:1184](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L1184-L1186)
 * function[unregister_default_headers()](https://developer.wordpress.org/reference/functions/unregister_default_headers/)
 * Unregisters default headers.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/unregister_default_headers/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/functions/unregister_default_headers/#uses)
   | Source: [wp-includes/theme.php:1634](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L1634-L1645)
 * function[header_textcolor()](https://developer.wordpress.org/reference/functions/header_textcolor/)
 * Displays the custom header text color in 3- or 6-digit hexadecimal form (minus
   the hash symbol).
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/header_textcolor/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/header_textcolor/#uses)
   | Source: [wp-includes/theme.php:1193](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L1193-L1195)
 * function[get_background_image()](https://developer.wordpress.org/reference/functions/get_background_image/)
 * Retrieves background image for custom background.
 * Used by [6 functions](https://developer.wordpress.org/reference/functions/get_background_image/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/get_background_image/#uses)
   | Source: [wp-includes/theme.php:1847](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L1847-L1849)
 * function[display_header_text()](https://developer.wordpress.org/reference/functions/display_header_text/)
 * Whether to display the header text.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/display_header_text/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/functions/display_header_text/#uses)
   | Source: [wp-includes/theme.php:1204](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L1204-L1211)
 * function[get_header_image()](https://developer.wordpress.org/reference/functions/get_header_image/)
 * Retrieves header image for custom header.
 * Used by [7 functions](https://developer.wordpress.org/reference/functions/get_header_image/#used-by)
   | Uses [7 functions](https://developer.wordpress.org/reference/functions/get_header_image/#uses)
   | Source: [wp-includes/theme.php:1233](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L1233-L1259)
 * function[_get_random_header_data()](https://developer.wordpress.org/reference/functions/_get_random_header_data/)
 * Gets random header image data from registered images in theme.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/_get_random_header_data/#used-by)
   | Uses [5 functions](https://developer.wordpress.org/reference/functions/_get_random_header_data/#uses)
   | Source: [wp-includes/theme.php:1398](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L1398-L1438)
 * function[get_random_header_image()](https://developer.wordpress.org/reference/functions/get_random_header_image/)
 * Gets random header image URL from registered images in theme.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/get_random_header_image/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/get_random_header_image/#uses)
   | Source: [wp-includes/theme.php:1447](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L1447-L1455)
 * function[get_theme_root_uri()](https://developer.wordpress.org/reference/functions/get_theme_root_uri/)
 * Retrieves URI for themes directory.
 * Used by [3 functions](https://developer.wordpress.org/reference/functions/get_theme_root_uri/#used-by)
   | Uses [6 functions](https://developer.wordpress.org/reference/functions/get_theme_root_uri/#uses)
   | Source: [wp-includes/theme.php:647](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L647-L683)
 * hook[theme_root_uri](https://developer.wordpress.org/reference/hooks/theme_root_uri/)
 * Filters the URI for themes directory.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/theme_root_uri/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/theme_root_uri/#uses)
   | Source: [wp-includes/theme.php:682](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L682-L682)
 * function[get_raw_theme_root()](https://developer.wordpress.org/reference/functions/get_raw_theme_root/)
 * Gets the raw theme root relative to the content directory with no filters applied.
 * Used by [7 functions](https://developer.wordpress.org/reference/functions/get_raw_theme_root/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/get_raw_theme_root/#uses)
   | Source: [wp-includes/theme.php:697](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L697-L723)
 * function[locale_stylesheet()](https://developer.wordpress.org/reference/functions/locale_stylesheet/)
 * Displays localized stylesheet link element.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/locale_stylesheet/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/locale_stylesheet/#uses)
   | Source: [wp-includes/theme.php:730](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L730-L743)
 * function[switch_theme()](https://developer.wordpress.org/reference/functions/switch_theme/)
 * Switches the theme.
 * Used by [3 functions](https://developer.wordpress.org/reference/functions/switch_theme/#used-by)
   | Uses [21 functions](https://developer.wordpress.org/reference/functions/switch_theme/#uses)
   | Source: [wp-includes/theme.php:760](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L760-L879)
 * hook[switch_theme](https://developer.wordpress.org/reference/hooks/switch_theme/)
 * Fires after the theme is switched.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/switch_theme/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/switch_theme/#uses)
   | Source: [wp-includes/theme.php:878](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L878-L878)
 * function[validate_current_theme()](https://developer.wordpress.org/reference/functions/validate_current_theme/)
 * Checks that the active theme has the required files.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/validate_current_theme/#used-by)
   | Uses [9 functions](https://developer.wordpress.org/reference/functions/validate_current_theme/#uses)
   | Source: [wp-includes/theme.php:901](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L901-L951)
 * hook[validate_current_theme](https://developer.wordpress.org/reference/hooks/validate_current_theme/)
 * Filters whether to validate the active theme.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/validate_current_theme/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/validate_current_theme/#uses)
   | Source: [wp-includes/theme.php:909](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L909-L909)
 * hook[wp_cache_themes_persistently](https://developer.wordpress.org/reference/hooks/wp_cache_themes_persistently/)
 * Filters whether to get the cache of the registered theme directories.
 * Used by [2 functions](https://developer.wordpress.org/reference/hooks/wp_cache_themes_persistently/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_cache_themes_persistently/#uses)
   | Source: [wp-includes/theme.php:487](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L487-L487)
 * function[get_theme_mods()](https://developer.wordpress.org/reference/functions/get_theme_mods/)
 * Retrieves all theme modifications.
 * Used by [4 functions](https://developer.wordpress.org/reference/functions/get_theme_mods/#used-by)
   | Uses [5 functions](https://developer.wordpress.org/reference/functions/get_theme_mods/#uses)
   | Source: [wp-includes/theme.php:1029](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L1029-L1051)
 * function[get_theme_root()](https://developer.wordpress.org/reference/functions/get_theme_root/)
 * Retrieves path to themes directory.
 * Used by [13 functions](https://developer.wordpress.org/reference/functions/get_theme_root/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/get_theme_root/#uses)
   | Source: [wp-includes/theme.php:600](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L600-L630)
 * function[get_theme_mod()](https://developer.wordpress.org/reference/functions/get_theme_mod/)
 * Retrieves theme modification value for the active theme.
 * Used by [25 functions](https://developer.wordpress.org/reference/functions/get_theme_mod/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/functions/get_theme_mod/#uses)
   | Source: [wp-includes/theme.php:1067](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L1067-L1096)
 * hook[theme_root](https://developer.wordpress.org/reference/hooks/theme_root/)
 * Filters the absolute path to the themes directory.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/theme_root/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/theme_root/#uses)
   | Source: [wp-includes/theme.php:629](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L629-L629)
 * hook[template](https://developer.wordpress.org/reference/hooks/template/)
 * Filters the name of the active theme.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/template/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/template/#uses)
   | Source: [wp-includes/theme.php:325](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/theme.php#L325-L325)

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

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

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