Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: home_template

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
670  * Attempts to locate 'home.php' first before falling back to 'index.php'.
671  *
672  * @since 1.5.0
673  * @uses apply_filters() Calls 'home_template' on file path of home template.
674  *
675  * @return string
676  */
677 function get_home_template() {
678      $template = locate_template(array('home.php', 'index.php'));
679      return apply_filters('home_template', $template);
680 }
681
682 /**
683  * Retrieve path of page template in current or parent template.
684  *
685  * First attempt is to look for the file in the '_wp_page_template' page meta
686  * data. The second attempt, if the first has a file and is not empty, is to
687  * look for 'page.php'.
688  *