{$template_type}_template_hierarchy
{$template_type}_template_hierarchy
Appears in: jetpack.11.8, jetpack.11.8.4, jetpack.11.9, jetpack.11.9.1, jetpack.12.0, jetpack.12.1, jetpack.12.1.1, jetpack.12.2.1, jetpack.12.3, jetpack.12.5, jetpack.12.6, jetpack.12.6.1, jetpack.12.7.1, jetpack.12.8, jetpack.12.8.1, jetpack.12.9, jetpack.12.9.3, jetpack.13.0, jetpack.13.1.1, jetpack.13.1.3, jetpack.13.2, jetpack.13.2.1
Hook Type: filter
Displaying hooks found in version: jetpack.13.2.1apply_filters('{$template_type}_template_hierarchy') is found 1 times:
- /_inc/lib/core-api/wpcom-endpoints/class-wpcom-rest-api-v2-endpoint-template-loader.php line 102
public function get_item( $request ) { $template_type = $request['template_type']; // A list of template candidates, in descending order of priority. $templates = apply_filters( "{$template_type}_template_hierarchy", array( "{$template_type}.php" ) ); $template = locate_template( $templates ); $block_template = resolve_block_template( $template_type, $templates, $template ); if ( empty( $block_template ) ) { return new WP_Error( 'not_found', 'Template not found', array( 'status' => 404 ) ); }