File: wp-includes/block-template-utils.php
-
function_get_block_template_file()
Retrieves the template file from the theme for a given slug.
-
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.