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
819  * Attempts to locate 'home.php' first before falling back to 'index.php'.
820  *
821  * @since 1.5.0
822  * @uses apply_filters() Calls 'home_template' on file path of home template.
823  *
824  * @return string
825  */
826 function get_home_template() {
827      $template = locate_template(array('home.php', 'index.php'));
828      return apply_filters('home_template', $template);
829 }
830
831 /**
832  * Retrieve path of page template in current or parent template.
833  *
834  * Will first look for the specifically assigned page template
835  * The will search for 'page-{slug}.php' followed by 'page-id.php'
836  * and finally 'page.php'
837  *