Scans a directory for files of a certain extension.
theme_{$post_type}_templates
Filters list of page templates for a theme.
theme_templates
Filters list of page templates for a theme.
WP_Theme::get_page_templates
Returns the theme’s post templates for a given post type.
Advertisement
WP_Theme::get_post_templates
Returns the theme’s post templates.
WP_Theme::get_files
Return files in the theme’s directory.
WP_Theme::get_screenshot
Returns the main screenshot file for the theme.
WP_Theme::get_theme_root_uri
Returns the URL to the directory of the theme root.
Advertisement
WP_Theme::get_theme_root
The absolute path to the directory of the theme root.
WP_Theme::get_template_directory_uri
Returns the URL to the directory of a theme’s “template” files.
WP_Theme::get_stylesheet_directory_uri
Returns the URL to the directory of a theme’s “stylesheet” files.
WP_Theme::get_template_directory
Returns the absolute path to the directory of a theme’s “template” files.
Advertisement
WP_Theme::get_stylesheet_directory
Returns the absolute path to the directory of a theme’s “stylesheet” files.
WP_Theme::get_template
The directory name of the theme’s “template” files, inside the theme root.
WP_Theme::get_stylesheet
The directory name of the theme’s “stylesheet” files, inside the theme root.