{$type}_template_hierarchy

{$type}_template_hierarchy

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('{$type}_template_hierarchy') is found 1 times:

  • /wp-includes/template.php line 62
    	 * @since 4.7.0
    	 *
    	 * @param string[] $templates A list of template candidates, in descending order of priority.
    	 */
    	$templates = apply_filters( "{$type}_template_hierarchy", $templates );
    
    	$template = locate_template( $templates );
    
    	$template = locate_block_template( $template, $type, $templates );
    
    	/**