Codex tools: Log in / create account
Contents |
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.
<?php locate_template( $template_names, $load ) ?>
Since: 2.7.0
locate_template() is located in wp-includes/theme.php.