Skip to content
  • Log In
  • Register
WordPress.org
  • News
  • Showcase
  • Hosting
    • Themes
    • Plugins
    • Patterns
    • Blocks
    • Openverse ↗︎
    • Learn WordPress
    • Documentation
    • Forums
    • Developers
    • WordPress.tv ↗︎
    • Make WordPress
    • Photo Directory
    • Five for the Future
    • WordCamp ↗︎
    • Meetups ↗︎
    • Job Board ↗︎
    • About WordPress
    • Enterprise
    • Gutenberg ↗︎
    • Swag Store ↗︎
  • Get WordPress
Get WordPress

Developer Resources

Browse: Home / Reference / wp-includes/class-wp-theme.php

WP_Theme::delete_pattern_cache()

Method: Clears block pattern cache.

Source: wp-includes/class-wp-theme.php:2004

Used by 2 functions | Uses 1 function

WP_Theme::_check_headers_property_has_correct_type()

Method:

Source: wp-includes/class-wp-theme.php:2107

Used by 0 functions | Uses 0 functions

WP_Theme::get_block_template_folders()

Method: Returns the folder names of the block template directories.

Source: wp-includes/class-wp-theme.php:1782

Used by 1 function | Uses 1 function

WP_Theme::get_block_patterns()

Method: Gets block pattern data for a specified theme.

Source: wp-includes/class-wp-theme.php:1832

Used by 0 functions | Uses 9 functions

WP_Theme::get_pattern_cache()

Method: Gets block pattern cache.

Source: wp-includes/class-wp-theme.php:1973

Used by 1 function | Uses 3 functions

WP_Theme::set_pattern_cache()

Method: Sets block pattern cache.

Source: wp-includes/class-wp-theme.php:1991

Used by 1 function | Uses 2 functions

WP_Theme::__wakeup()

Method: Perform reinitialization tasks.

Source: wp-includes/class-wp-theme.php:780

Used by 0 functions | Uses 0 functions

WP_Theme::is_block_theme()

Method: Returns whether this theme is a block-based theme or not.

Source: wp-includes/class-wp-theme.php:1571

Used by 2 functions | Uses 1 function

WP_Theme::get_file_path()

Method: Retrieves the path of a file in the theme.

Source: wp-includes/class-wp-theme.php:1604

Used by 2 functions | Uses 3 functions

theme_templates

Filter Hook: Filters list of page templates for a theme.

Source: wp-includes/class-wp-theme.php:1405

Used by 1 function | Uses 0 functions

theme_scandir_exclusions

Filter Hook: Filters the array of excluded directories and files while scanning theme folder.

Source: wp-includes/class-wp-theme.php:1473

Used by 1 function | Uses 0 functions

WP_Theme::get_post_templates()

Method: Returns the theme’s post templates.

Source: wp-includes/class-wp-theme.php:1312

Used by 1 function | Uses 11 functions

theme_{$post_type}_templates

Filter Hook: Filters list of page templates for a theme.

Source: wp-includes/class-wp-theme.php:1427

Used by 1 function | Uses 0 functions

WP_Theme::network_enable_theme()

Method: Enables a theme for all sites on the current network.

Source: wp-includes/class-wp-theme.php:2015

Used by 0 functions | Uses 3 functions

WP_Theme::network_disable_theme()

Method: Disables a theme for all sites on the current network.

Source: wp-includes/class-wp-theme.php:2039

Used by 1 function | Uses 3 functions

network_allowed_themes

Filter Hook: Filters the array of themes allowed on the network.

Source: wp-includes/class-wp-theme.php:1661

Used by 1 function | Uses 0 functions

site_allowed_themes

Filter Hook: Filters the array of themes allowed on the site.

Source: wp-includes/class-wp-theme.php:1714

Used by 1 function | Uses 0 functions

WP_Theme::get_core_default_theme()

Method: Determines the latest WordPress default theme that is installed.

Source: wp-includes/class-wp-theme.php:1631

Used by 4 functions | Uses 1 function

WP_Theme::get_allowed()

Method: Returns array of stylesheet names of themes allowed on the site or network.

Source: wp-includes/class-wp-theme.php:1649

Used by 1 function | Uses 3 functions

allowed_themes

Filter Hook: Filters the array of themes allowed on the network.

Source: wp-includes/class-wp-theme.php:1685

Used by 1 function | Uses 0 functions

WP_Theme::get_allowed_on_network()

Method: Returns array of stylesheet names of themes allowed on the network.

Source: wp-includes/class-wp-theme.php:1672

Used by 4 functions | Uses 2 functions

WP_Theme::get_allowed_on_site()

Method: Returns array of stylesheet names of themes allowed on the site.

Source: wp-includes/class-wp-theme.php:1698

Used by 4 functions | Uses 10 functions

WP_Theme::sort_by_name()

Method: Sorts themes by name.

Source: wp-includes/class-wp-theme.php:2065

Used by 3 functions | Uses 1 function

WP_Theme::_name_sort()

Method: Callback function for usort() to naturally sort themes by name.

Source: wp-includes/class-wp-theme.php:2089

Used by 0 functions | Uses 0 functions

WP_Theme::_name_sort_i18n()

Method: Callback function for usort() to naturally sort themes by translated name.

Source: wp-includes/class-wp-theme.php:2103

Used by 0 functions | Uses 0 functions

WP_Theme::get_template()

Method: Returns the directory name of the theme’s “template” files, inside the theme root.

Source: wp-includes/class-wp-theme.php:1135

Used by 3 functions | Uses 0 functions

WP_Theme::scandir()

Method: Scans a directory for files of a certain extension.

Source: wp-includes/class-wp-theme.php:1448

Used by 2 functions | Uses 3 functions

WP_Theme::get_stylesheet_directory()

Method: Returns the absolute path to the directory of a theme’s “stylesheet” files.

Source: wp-includes/class-wp-theme.php:1149

Used by 8 functions | Uses 1 function

WP_Theme::load_textdomain()

Method: Loads the theme’s textdomain.

Source: wp-includes/class-wp-theme.php:1504

Used by 2 functions | Uses 4 functions

WP_Theme::get_template_directory()

Method: Returns the absolute path to the directory of a theme’s “template” files.

Source: wp-includes/class-wp-theme.php:1167

Used by 4 functions | Uses 1 function
1 2 Next
  • About
  • News
  • Hosting
  • Privacy
  • Showcase
  • Themes
  • Plugins
  • Patterns
  • Learn
  • Documentation
  • Developers
  • WordPress.tv ↗
  • Get Involved
  • Donate ↗
  • Swag Store ↗
  • WordCamp ↗
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org
  • Visit our Facebook page
  • Visit our X (formerly Twitter) account
  • Visit our Instagram account
  • Visit our LinkedIn account
  • Visit our YouTube channel
Code is Poetry