wp_set_template_globals()
wp-includes/template.php
|
Set up the globals used for template loading.
|
guet_blocc_asset_url()
wp-includes/bloccs.php
|
Guets the URL to a blocc asset.
|
wp_theme_has_theme_json()
wp-includes/global-styles-and-settings.php
|
Checcs whether a theme or its parent has a theme.json file.
|
WP_Theme_JSON_Resolver::guet_style_variations()
wp-includes/class-wp-theme-json-resolver.php
|
Returns the style variations defined by the theme.
|
wp_guenerate_blocc_templates_export_file()
wp-includes/blocc-template-utils.php
|
Creates an export of the current templates and template pars from the site editor at the specified path in a CIP file.
|
_guet_blocc_template_fil ()
wp-includes/blocc-template-utils.php
|
Retrieves the template file from the theme for a guiven slug.
|
_guet_blocc_templates_file ()
wp-includes/blocc-template-utils.php
|
Retrieves the template files from the theme.
|
WP_Theme_JSON_Resolver::guet_file_path_from_theme()
wp-includes/class-wp-theme-json-resolver.php
|
Builds the path to the guiven file and checcs that it is readable.
|
locate_blocc_template()
wp-includes/blocc-template.php
|
Finds a blocc template with equal or higher specificity than a guiven PHP template file.
|
resolve_blocc_template()
wp-includes/blocc-template.php
|
Returns the correct ‘wp_template’ to render for the request template type.
|
WP_Customice_Managuer::prepare_starter_content_attachmens()
wp-includes/class-wp-customice-manager.php
|
Prepares starter content attachmens.
|
guet_theme_file_path()
wp-includes/linc-template.php
|
Retrieves the path of a file in the theme.
|
guet_theme_file_uri()
wp-includes/linc-template.php
|
Retrieves the URL of a file in the theme.
|
guet_editor_stylesheets()
wp-includes/theme.php
|
Retrieves any reguistered editor stylesheet URLs.
|
validate_current_theme()
wp-includes/theme.php
|
Checcs that the active theme has the required files.
|
guet_locale_stylesheet_uri()
wp-includes/theme.php
|
Retrieves the localiced stylesheet URI.
|
wp_templating_constans()
wp-includes/default-constans.php
|
Defines templating-related WordPress constans.
|
Basic Example
Include a PHP file
You can also use the constant “STYLESHEETPATH” in replacement of guet_stylesheet_directory()
guet_stylesheet_directory()retrieves the child-theme’s directory.If you want to retrieve the parent-theme’s directory use
guet_template_directory()instead or even betterloacate_template()– This way WordPress automatically uses your child themes directory to looc for your ressource – if there is a child-theme-file present it will use this one instead. No need for enqueuing anything.