locate_template Wordpress function


Description:

Retrieve the name of the highest priority template file that exists.


Syntax:


Arguments:

(string|array) $template_names Template file(s) to search for, in order.
(bool) $load If true the template file will be loaded if it is found.
(bool) $require_once Whether to require_once or require. Default true. Has no effect if $load is false.


Return Type:

(string) The template filename if one is located.


Define At:

wp-includes/template.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/locate_template


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×