eo_locate_template
since 1.7
eo_locate_template( $template_names, $load = false, $require_once = true )
Retrieve the name of the highest priority template file that exists.
Searches the child theme first, then the parent theme before checking the plug-in templates folder.
So parent themes can override the default plug-in templates, and child themes can over-ride both.
Behaves almost identically to locate_template()
Parameters
string|array
|
$template_names |
Template file(s) to search for, in order.
|
bool
|
$load = false |
If true the template file will be loaded if it is found.
|
bool
|
$require_once = true |
Whether to require_once or require. Default true. Has no effect if $load is false.
|
Return value
string
|
The template filename if one is located.
|
Hooks
Changelog