locate_template
function locate_template( $template_names, $load = false, $require_once = true ) {
$located = '';
foreach ( (array) $template_names as $template_name ) {
if ( ! $template_name ) {
continue;
}
if ( file_exists( STYLESHEETPATH . '/' . $template_name ) ) {
$located = STYLESHEETPATH . '/' . $template_name;
break;
} elseif ( file_exists( TEMPLATEPATH . '/' . $template_name ) ) {
$located = TEMPLATEPATH . '/' . $template_name;
break;
} elseif ( file_exists( ABSPATH . WPINC . '/theme-compat/' . $template_name ) ) {
$located = ABSPATH . WPINC . '/theme-compat/' . $template_name;
break;
}
}
if ( $load && '' != $located ) {
load_template( $located, $require_once );
}
return $located;
}
Also in HTML:
- text color html
- how to set background image for web page in html local image
- how to start a html file
- background position in html
- html telephone
- Adding and Deleting html Elements
- htmp tag P
- how to link javascript to html
- iframe autoplay
- fetch html from url
- html importer une image
- how to import google font
- how to convert html response of type image/png in angular
- html background color
- how to embed applet in html
- SVG arc
- path in html
- excel vba HTML text with tags to formatted text in an cell
- what does htmlentities do in php
- download button html
- simple html document
- what is xhtml
- string to html javascript react
- colspan tag html