WPDev.one
Core Function
View Source on Trac ↗

get_query_template()

get_query_template( mixed $type, mixed $templates = array() )

Retrieves path to a template.

Parameters 1 required

Name / Type Description
$type
string

Filename without extension.

Required
$templates
string[]

An optional list of template candidates.

Return Value

(string)
Full path to template file.

Function Information

Since Version
1.5.0
Source File
wp-includes/template.php
Advertisement