{$template_type}_template_hierarchy
{$template_type}_template_hierarchy
Appears in: gutenberg.18.2.0, gutenberg.18.5.0, gutenberg.18.6.1, gutenberg.18.7.1, gutenberg.18.9.0, gutenberg.19.0.0, gutenberg.19.1.0, gutenberg.19.2.0, gutenberg.19.4.0, gutenberg.19.6.1, gutenberg.19.6.4, 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, jetpack.13.3.1, jetpack.13.5, jetpack.13.6, jetpack.13.7, jetpack.13.8, jetpack.13.8.1, jetpack.13.9.1, jetpack.14.0, wordpress-6.6, wordpress-6.6.1, wordpress-6.6.2, wordpress-6.7
Hook Type: filter
Displaying hooks found in version: wordpress-6.7apply_filters('{$template_type}_template_hierarchy') is found 1 times:
- /wp-includes/block-template-utils.php line 1608
} $valid_template_types = array( '404', 'archive', 'attachment', 'author', 'category', 'date', 'embed', 'frontpage', 'home', 'index', 'page', 'paged', 'privacypolicy', 'search', 'single', 'singular', 'tag', 'taxonomy' ); if ( in_array( $template_type, $valid_template_types, true ) ) { /** This filter is documented in wp-includes/template.php */ return apply_filters( "{$template_type}_template_hierarchy", $template_hierarchy ); } return $template_hierarchy; } /** * Inject ignoredHookedBlocks metadata attributes into a template or template part.