wpseek.com
A WordPress-centric search engine for devs and theme authors



wp-includes/block-template-utils.php › WordPress File

Functions18
Utilities used to fetch and create templates and template parts.


Function Short description
block_footer_areaPrint the footer template-part.
block_header_areaPrint the header template-part.
block_template_partPrint a template-part.
get_allowed_block_template_part_areasReturns a filtered list of allowed area values for template parts.
get_block_file_templateRetrieves a single unified template object using its id.
get_block_templateRetrieves a single unified template object using its id.
get_block_templatesRetrieves a list of unified template objects based on a query.
get_default_block_template_typesReturns a filtered list of default template types, containing their localized titles and descriptions.
_add_block_template_infoAttempts to add custom template information to the template item.
_add_block_template_part_area_infoAttempts to add the template part's area information to the input template.
_build_block_template_result_from_fileBuild a unified template object based on a theme file.
_build_block_template_result_from_postBuild a unified template object based a post Object.
_filter_block_template_part_areaChecks whether the input 'area' is a supported value.
_flatten_blocksReturns an array containing the references of the passed blocks and their inner blocks.
_get_block_templates_filesRetrieves the template files from the theme.
_get_block_templates_pathsFinds all nested template part file paths in a theme's directory.
_get_block_template_fileRetrieves the template file from the theme for a given slug.
_inject_theme_attribute_in_block_template_contentParses wp_template content and injects the current theme's stylesheet as a theme attribute into each wp_template_part