File: wp-includes/block-template.php
-
function_add_template_loader_filters()
Adds necessary hooks to resolve ‘_wp-find-template’ requests.
-
function_resolve_template_for_new_post()
Sets the current WP_Query to return auto-draft posts.
-
functionlocate_block_template()
Finds a block template with equal or higher specificity than a given PHP template file.
-
functionresolve_block_template()
Returns the correct ‘wp_template’ to render for the request template type.
-
Displays title tag with content, regardless of whether theme has title-tag support.
-
functionget_the_block_template_html()
Returns the markup for the current template.
-
Renders a ‘viewport’ meta tag.
-
function_strip_template_file_suffix()
Strips .php or .html suffix from template file names.
-
Removes post details from block context when rendering a block template.