2020-05-01 / 5766阅 / 悠然
Retrieve path to a template
Used to quickly retrieve the path of a template without including the file extension. It will also check the parent theme, if the file exists, with the use of locate_template(). Allows for more generic template location without the use of the other get_*_template() functions.
(string)
(Required)
Filename without extension.
(array)
(Optional)
An optional list of template candidates
Default value: array()
(string) Full path to template file.