File: wp-includes/block-template-utils.php
-
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.
-
functionget_block_theme_folders()
For backward compatibility reasons, block themes might be using block-templates or block-template-parts, this function ensures we fallback to these folders properly.
-
Build a unified template object based a post Object.
-
functionget_block_templates()
Retrieves a list of unified template objects based on a query.
-
functionget_block_template()
Retrieves a single unified template object using its id.