Title: 2.9.0 | Page 3 of 8 | Developer.WordPress.org

---

# New and updated in 2.9.0

Functions

Hooks

Classes

Methods

 * function[add_theme_support()](https://developer.wordpress.org/reference/functions/add_theme_support/)
 * Registers theme support for a given feature.
 * Used by [12 functions](https://developer.wordpress.org/reference/functions/add_theme_support/#used-by)
   | Uses [7 functions](https://developer.wordpress.org/reference/functions/add_theme_support/#uses)
   | Source: [wp-includes/theme.php:2693](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/theme.php#L2693-L2943)
 * function[current_theme_supports()](https://developer.wordpress.org/reference/functions/current_theme_supports/)
 * Checks a theme’s support for a given feature.
 * Used by [83 functions](https://developer.wordpress.org/reference/functions/current_theme_supports/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/current_theme_supports/#uses)
   | Source: [wp-includes/theme.php:3158](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/theme.php#L3158-L3219)
 * function[require_if_theme_supports()](https://developer.wordpress.org/reference/functions/require_if_theme_supports/)
 * Checks a theme’s support for a given feature before loading the functions which
   implement it.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/require_if_theme_supports/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/require_if_theme_supports/#uses)
   | Source: [wp-includes/theme.php:3231](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/theme.php#L3231-L3237)
 * function[_preview_theme_template_filter()](https://developer.wordpress.org/reference/functions/_preview_theme_template_filter/)
 * Private function to modify the current template when previewing a theme
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/_preview_theme_template_filter/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/_preview_theme_template_filter/#uses)
   | Source: [wp-includes/deprecated.php:3522](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/deprecated.php#L3522-L3525)
 * function[_preview_theme_stylesheet_filter()](https://developer.wordpress.org/reference/functions/_preview_theme_stylesheet_filter/)
 * Private function to modify the current stylesheet when previewing a theme
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/_preview_theme_stylesheet_filter/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/_preview_theme_stylesheet_filter/#uses)
   | Source: [wp-includes/deprecated.php:3536](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/deprecated.php#L3536-L3539)
 * function[search_theme_directories()](https://developer.wordpress.org/reference/functions/search_theme_directories/)
 * Searches all registered theme directories for complete and valid themes.
 * Used by [5 functions](https://developer.wordpress.org/reference/functions/search_theme_directories/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/functions/search_theme_directories/#uses)
   | Source: [wp-includes/theme.php:449](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/theme.php#L449-L585)
 * function[get_theme_roots()](https://developer.wordpress.org/reference/functions/get_theme_roots/)
 * Retrieves theme roots.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/get_theme_roots/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/get_theme_roots/#uses)
   | Source: [wp-includes/theme.php:388](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/theme.php#L388-L401)
 * function[register_theme_directory()](https://developer.wordpress.org/reference/functions/register_theme_directory/)
 * Registers a directory that contains themes.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/register_theme_directory/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/register_theme_directory/#uses)
   | Source: [wp-includes/theme.php:415](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/theme.php#L415-L437)
 * hook[override_load_textdomain](https://developer.wordpress.org/reference/hooks/override_load_textdomain/)
 * Filters whether to override the .mo file loading.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/override_load_textdomain/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/override_load_textdomain/#uses)
   | Source: [wp-includes/l10n.php:769](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/l10n.php#L769-L769)
 * hook[load_textdomain](https://developer.wordpress.org/reference/hooks/load_textdomain/)
 * Fires before the MO translation file is loaded.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/load_textdomain/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/load_textdomain/#uses)
   | Source: [wp-includes/l10n.php:785](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/l10n.php#L785-L785)
 * hook[load_textdomain_mofile](https://developer.wordpress.org/reference/hooks/load_textdomain_mofile/)
 * Filters MO file path for loading translations for a specific text domain.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/load_textdomain_mofile/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/load_textdomain_mofile/#uses)
   | Source: [wp-includes/l10n.php:795](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/l10n.php#L795-L795)
 * function[load_child_theme_textdomain()](https://developer.wordpress.org/reference/functions/load_child_theme_textdomain/)
 * Loads the child theme’s translated strings.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/load_child_theme_textdomain/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/load_child_theme_textdomain/#uses)
   | Source: [wp-includes/l10n.php:1121](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/l10n.php#L1121-L1126)
 * function[esc_html_x()](https://developer.wordpress.org/reference/functions/esc_html_x/)
 * Translates string with gettext context, and escapes it for safe use in HTML output.
 * Used by [8 functions](https://developer.wordpress.org/reference/functions/esc_html_x/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/esc_html_x/#uses)
   | Source: [wp-includes/l10n.php:459](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/l10n.php#L459-L461)
 * function[wp_strip_all_tags()](https://developer.wordpress.org/reference/functions/wp_strip_all_tags/)
 * Properly strips all HTML tags including ‘script’ and ‘style’.
 * Used by [21 functions](https://developer.wordpress.org/reference/functions/wp_strip_all_tags/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/wp_strip_all_tags/#uses)
   | Source: [wp-includes/formatting.php:5525](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/formatting.php#L5525-L5561)
 * function[sanitize_text_field()](https://developer.wordpress.org/reference/functions/sanitize_text_field/)
 * Sanitizes a string from user input or from the database.
 * Used by [58 functions](https://developer.wordpress.org/reference/functions/sanitize_text_field/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/sanitize_text_field/#uses)
   | Source: [wp-includes/formatting.php:5581](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/formatting.php#L5581-L5593)
 * hook[sanitize_text_field](https://developer.wordpress.org/reference/hooks/sanitize_text_field/)
 * Filters a sanitized text field string.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/sanitize_text_field/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/sanitize_text_field/#uses)
   | Source: [wp-includes/formatting.php:5592](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/formatting.php#L5592-L5592)
 * hook[excerpt_more](https://developer.wordpress.org/reference/hooks/excerpt_more/)
 * Filters the string in the “more” link displayed after a trimmed excerpt.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/excerpt_more/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/excerpt_more/#uses)
   | Source: [wp-includes/formatting.php:4019](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/formatting.php#L4019-L4019)
 * hook[smilies_src](https://developer.wordpress.org/reference/hooks/smilies_src/)
 * Filters the Smiley image URL before it’s used in the image element.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/smilies_src/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/smilies_src/#uses)
   | Source: [wp-includes/formatting.php:3465](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/formatting.php#L3465-L3465)
 * function[_wptexturize_pushpop_element()](https://developer.wordpress.org/reference/functions/_wptexturize_pushpop_element/)
 * Searches for disabled element tags. Pushes element to stack on tag open and pops
   on tag close.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/_wptexturize_pushpop_element/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/functions/_wptexturize_pushpop_element/#uses)
   | Source: [wp-includes/formatting.php:391](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/formatting.php#L391-L429)
 * function[shortcode_unautop()](https://developer.wordpress.org/reference/functions/shortcode_unautop/)
 * Don’t auto-p wrap shortcodes that stand alone.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/shortcode_unautop/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/shortcode_unautop/#uses)
   | Source: [wp-includes/formatting.php:824](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/formatting.php#L824-L869)
 * hook[auth_redirect_scheme](https://developer.wordpress.org/reference/hooks/auth_redirect_scheme/)
 * Filters the authentication redirect scheme.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/auth_redirect_scheme/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/auth_redirect_scheme/#uses)
   | Source: [wp-includes/pluggable.php:1310](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/pluggable.php#L1310-L1310)
 * function[gd_edit_image_support()](https://developer.wordpress.org/reference/functions/gd_edit_image_support/)
 * Check if the installed version of GD supports particular image type
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/gd_edit_image_support/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/gd_edit_image_support/#uses)
   | Source: [wp-includes/deprecated.php:3331](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/deprecated.php#L3331-L3362)
 * function[_search_terms_tidy()](https://developer.wordpress.org/reference/functions/_search_terms_tidy/)
 * Formerly used internally to tidy up the search terms.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/_search_terms_tidy/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/_search_terms_tidy/#uses)
   | Source: [wp-includes/deprecated.php:3402](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/deprecated.php#L3402-L3405)
 * function[wp_timezone_supported()](https://developer.wordpress.org/reference/functions/wp_timezone_supported/)
 * Check for PHP timezone support
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_timezone_supported/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/wp_timezone_supported/#uses)
   | Source: [wp-includes/deprecated.php:2580](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/deprecated.php#L2580-L2584)
 * function[wp_kses_data()](https://developer.wordpress.org/reference/functions/wp_kses_data/)
 * Sanitize content with allowed HTML KSES rules.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/wp_kses_data/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/wp_kses_data/#uses)
   | Source: [wp-includes/kses.php:2351](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/kses.php#L2351-L2353)
 * function[wp_kses_post()](https://developer.wordpress.org/reference/functions/wp_kses_post/)
 * Sanitizes content for allowed HTML tags for post content.
 * Used by [12 functions](https://developer.wordpress.org/reference/functions/wp_kses_post/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/wp_kses_post/#uses)
   | Source: [wp-includes/kses.php:2418](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/kses.php#L2418-L2420)
 * class[WP_MatchesMapRegex](https://developer.wordpress.org/reference/classes/wp_matchesmapregex/)
 * Helper class to remove the need to use eval to replace $matches[] in query strings.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_matchesmapregex/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_matchesmapregex/#uses)
   | Source: [wp-includes/class-wp-matchesmapregex.php:14](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/class-wp-matchesmapregex.php#L14-L90)
 * hook[pre_http_request](https://developer.wordpress.org/reference/hooks/pre_http_request/)
 * Filters the preemptive return value of an HTTP request.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/pre_http_request/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/pre_http_request/#uses)
   | Source: [wp-includes/class-wp-http.php:277](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/class-wp-http.php#L277-L277)
 * hook[http_response](https://developer.wordpress.org/reference/hooks/http_response/)
 * Filters a successful HTTP API response immediately before the response is returned.
 * Used by [2 functions](https://developer.wordpress.org/reference/hooks/http_response/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/http_response/#uses)
   | Source: [wp-includes/class-wp-http.php:468](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/class-wp-http.php#L468-L468)
 * function[_wp_timezone_choice_usort_callback()](https://developer.wordpress.org/reference/functions/_wp_timezone_choice_usort_callback/)
 * Sort-helper for timezones.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/_wp_timezone_choice_usort_callback/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/functions/_wp_timezone_choice_usort_callback/#uses)
   | Source: [wp-includes/functions.php:6612](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/functions.php#L6612-L6657)

 [Previous Page](https://developer.wordpress.org/reference/since/2.9.0/page/2/?output_format=md)

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

 [Next Page](https://developer.wordpress.org/reference/since/2.9.0/page/4/?output_format=md)