get_block_file_template


get_block_file_template ( $id, $template_type = 'wp_template' )

Parameters:
  • (string) id Template unique identifier (example: theme_slug//template_slug).
  • (array) template_type Optional. Template type: `'wp_template'` or '`wp_template_part'`. Default `'wp_template'`.
Defined at:

Description

Retrieves a single unified template object using its id.

Related Functions

get_block_template, get_block_templates, _get_block_template_file, get_single_template, get_home_template

Top Google Results

User discussions

wpseek mobile