File: wp-includes/class-wp-theme.php
-
Filters the cache expiration time for theme files.
-
Clears block pattern cache.
-
-
Returns the folder names of the block template directories.
-
Gets block pattern data for a specified theme.
-
Gets block pattern cache.
-
Sets block pattern cache.
-
methodWP_Theme::__wakeup()
Perform reinitialization tasks.
-
Returns whether this theme is a block-based theme or not.
-
Retrieves the path of a file in the theme.
-
hooktheme_templates
Filters list of page templates for a theme.
-
Filters the array of excluded directories and files while scanning theme folder.
-
Returns the theme’s post templates.
-
Filters list of page templates for a theme.
-
Enables a theme for all sites on the current network.
-
Disables a theme for all sites on the current network.
-
Filters the array of themes allowed on the network.
-
Filters the array of themes allowed on the site.
-
Determines the latest WordPress default theme that is installed.
-
methodWP_Theme::get_allowed()
Returns array of stylesheet names of themes allowed on the site or network.
-
hookallowed_themes
Filters the array of themes allowed on the network.
-
Returns array of stylesheet names of themes allowed on the network.
-
Returns array of stylesheet names of themes allowed on the site.
-
methodWP_Theme::sort_by_name()
Sorts themes by name.
-
methodWP_Theme::_name_sort()
Callback function for usort() to naturally sort themes by name.
-
Callback function for usort() to naturally sort themes by translated name.
-
methodWP_Theme::get_template()
Returns the directory name of the theme’s “template” files, inside the theme root.
-
methodWP_Theme::scandir()
Scans a directory for files of a certain extension.
-
Returns the absolute path to the directory of a theme’s “stylesheet” files.
-
Loads the theme’s textdomain.