frontpage_template_hierarchy
frontpage_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, wordpress-6.6, wordpress-6.6.1
Hook Type: filter
Displaying hooks found in version: wordpress-6.6.1apply_filters('frontpage_template_hierarchy') is found 1 times:
- /wp-includes/block-template-utils.php line 1463
return apply_filters( 'page_template_hierarchy', array( 'page', 'singular', 'index' ) ); } if ( 'front-page' === $slug ) { /** This filter is documented in wp-includes/template.php */ return apply_filters( 'frontpage_template_hierarchy', array( 'front-page', 'home', 'index' ) ); } $matches = array(); $template_hierarchy = array( $slug ); // Most default templates don't have `$template_prefix` assigned.