Function edd_locate_template
Retrieve the name of the highest priority template file that exists.
Searches in the STYLESHEETPATH before TEMPLATEPATH so that themes which inherit from a parent theme can just overload one file. If the template is not found in either of those, it looks in the theme-compat folder last.
Taken from bbPress
Package: EDD\Functions\Templates
Copyright: Copyright (c) 2013, Pippin Williamson
License: GNU Public License
Since: 1.2
Used by:
Located at includes/template-functions.php
Copyright: Copyright (c) 2013, Pippin Williamson
License: GNU Public License
Since: 1.2
Used by:
edd_get_template_part()
Located at includes/template-functions.php
Parameters summary
string|array |
$template_names |
Template file(s) to search for, in order. |
boolean |
$load = false |
If true the template file will be loaded if it is found. |
boolean |
$require_once = true |
Whether to require_once or require. Default true. Has no effect if $load is false. |
Return value summary
string
|
The template filename if one is located. |