_get_block_template_file


_get_block_template_file ( $template_type, $slug )

Access:
  • private
Parameters:
  • (string) template_type wp_template or wp_template_part.
  • (string) slug template slug.
Returns:
  • (array|null) Template.
Defined at:

Description

Retrieves the template file from the theme for a given slug.

Related Functions

_get_block_templates_files, get_block_template, get_block_templates, _get_block_templates_paths, get_the_block_template_html

Top Google Results

User discussions

wpseek mobile