• About WordPress
    • About WordPress
    • WordPress.org
    • Documentation
    • Support
    • Feedback
  • Log In
  • Register
WordPress.org
WordPress.org
  • Plugins
  • Themes
  • Patterns
  • Learn
  • Support
    • Documentation
    • Forums
  • News
  • About
  • Get Involved
    • Five for the Future
  • Showcase
  • Mobile
  • Hosting
  • Openverse
  • Get WordPress
Get WordPress

Code Reference

Skip to content
Filter by type:
Search
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:1482

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

Used by 1 function | Uses 4 functions

theme_templates

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

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

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

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

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

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

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

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

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

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

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

Used by 1 function | Uses 4 functions

allowed_themes

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

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

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

Used by 4 functions | Uses 3 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:1602

Used by 4 functions | Uses 11 functions

WP_Theme::sort_by_name()

Method: Sorts themes by name.

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

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

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

Used by 0 functions | Uses 0 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:1078

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

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

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

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

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

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

Used by 2 functions | Uses 4 functions

WP_Theme::markup_header()

Method: Marks up a theme header.

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

Used by 1 function | Uses 8 functions

WP_Theme::get_files()

Method: Returns files in the theme’s directory.

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

Used by 2 functions | Uses 4 functions

WP_Theme::translate_header()

Method: Translates a theme header.

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

Used by 2 functions | Uses 5 functions

WP_Theme::get_page_templates()

Method: Returns the theme’s post templates for a given post type.

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

Used by 4 functions | Uses 5 functions

WP_Theme::get_stylesheet()

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

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

Used by 17 functions | Uses 0 functions
1 2 Next »
  • About
  • News
  • Hosting
  • Donate
  • Support
  • 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
Code is Poetry