Skip to content
  • Log In
  • Register
WordPress.org
  • News
  • Download & Extend
    • Get WordPress
    • Themes
    • Patterns
    • Plugins
    • Openverse
    • Mobile
    • Hosting
  • Learn
    • Learn WordPress
    • Documentation
    • Forums
    • WordPress.tv
    • Developers
  • Community
    • Make WordPress
    • WordCamp
    • Meetups
    • Photo Directory
    • Job Board
    • Five for the Future
  • About
    • About WordPress
    • Showcase
    • Gutenberg
    • Enterprise
  • Get WordPress
Get WordPress

Developer Resources

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

WP_Theme::is_block_theme()

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

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

Used by 1 function | 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:1519

Used by 1 function | Uses 3 functions

theme_templates

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

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

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:1395

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:1234

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:1349

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:1690

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:1714

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:1576

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:1629

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:1546

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:1564

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:1600

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:1587

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:1613

Used by 4 functions | Uses 10 functions

WP_Theme::sort_by_name()

Method: Sorts themes by name.

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

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:1764

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:1778

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:1057

Used by 2 functions | Uses 0 functions

WP_Theme::scandir()

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

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

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:1071

Used by 6 functions | Uses 1 function

WP_Theme::load_textdomain()

Method: Loads the theme’s textdomain.

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

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:1089

Used by 4 functions | Uses 1 function

WP_Theme::is_allowed()

Method: Determines whether the theme is allowed (multisite only).

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

Used by 0 functions | Uses 4 functions

WP_Theme::get_stylesheet_directory_uri()

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

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

Used by 1 function | Uses 1 function

WP_Theme::get_template_directory_uri()

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

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

Used by 0 functions | Uses 2 functions

WP_Theme::get_theme_root()

Method: Returns the absolute path to the directory of the theme root.

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

Used by 2 functions | Uses 0 functions

WP_Theme::get_theme_root_uri()

Method: Returns the URL to the directory of the theme root.

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

Used by 4 functions | Uses 1 function

WP_Theme::get_screenshot()

Method: Returns the main screenshot file for the theme.

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

Used by 2 functions | Uses 4 functions

WP_Theme::markup_header()

Method: Marks up a theme header.

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

Used by 1 function | Uses 8 functions
1 2 Next
  • About
  • News
  • Hosting
  • Donate
  • Swag
  • Documentation
  • Developers
  • Get Involved
  • Learn
  • Showcase
  • Plugins
  • Themes
  • Patterns
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
WordPress.org
WordPress.org
  • Visit our Facebook page
  • Visit our Twitter account
  • Visit our Instagram account
  • Visit our LinkedIn account
Code is Poetry