get_block_template
get_block_template ( $id, $template_type = 'wp_template' )
Parameters:- (string) id Template unique identifier (example: 'theme_slug//template_slug').
- (string) template_type Optional. Template type. Either 'wp_template' or 'wp_template_part'. Default 'wp_template'.
Returns:- (WP_Block_Template|null) Template.
Defined at: - Introduced in WordPress: 5.8.0
- Deprecated in WordPress: —
Description
Retrieves a single unified template object using its id.