{$type}_template

{$type}_template

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

See hook in core

Displaying hooks found in version: wordpress-6.7

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

  • /wp-includes/template.php line 103
    	 * @param string   $template  Path to the template. See locate_template().
    	 * @param string   $type      Sanitized filename without extension.
    	 * @param string[] $templates A list of template candidates, in descending order of priority.
    	 */
    	return apply_filters( "{$type}_template", $template, $type, $templates );
    }
    
    /**
     * Retrieves path of index template in current or parent template.
     *
     * The template hierarchy and template path are filterable via the {@see '$type_template_hierarchy'}