File: wp-includes/block-template-utils.php
-
Builds a block template object from a post object.
-
Inject ignoredHookedBlocks metadata attributes into a template or template part.
-
Removes the `theme` attribute from a given template part block.
-
Injects the active theme’s stylesheet as a `theme` attribute into a given template part block.
-
functionget_template_hierarchy()
Gets the template hierarchy for the given template slug to be created.
-
Builds the title and description of a post-specific template based on the underlying referenced post.
-
Builds the title and description of a taxonomy-specific template based on the underlying entity referenced.
-
functionwp_is_theme_directory_ignored()
Determines whether a theme directory should be ignored during export.
-
Creates an export of the current templates and template parts from the site editor at the specified path in a ZIP file.
-
functionget_block_file_template()
Retrieves a unified template object based on a theme file.
-
Filters the block template object before the theme file discovery takes place.
-
Filters the block template object after it has been (potentially) fetched from the theme file.
-
functionblock_template_part()
Prints a block template part.
-
functionblock_header_area()
Prints the header block template part.
-
functionblock_footer_area()
Prints the footer block template part.
-
Filters the block templates array before the query takes place.
-
Filters the array of queried block templates array after they’ve been fetched.
-
Filters the block template object before the query takes place.
-
Filters the queried block template object after it’s been fetched.
-
Builds a unified template object based on a theme file.
-
Builds a unified template object based a post Object.
-
function_get_block_templates_files()
Retrieves the template files from the theme.
-
function_add_block_template_info()
Attempts to add custom template information to the template item.
-
Attempts to add the template part’s area information to the input template.
-
function_flatten_blocks()
Returns an array containing the references of the passed blocks and their inner blocks.
-
Returns a filtered list of allowed area values for template parts.
-
Filters the list of allowed template part area values.
-
Returns a filtered list of default template types, containing their localized titles and descriptions.
-
Filters the list of default template types.
-
Checks whether the input ‘area’ is a supported value.