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
880  * Attempts to locate 'home.php' first before falling back to 'index.php'.
881  *
882  * @since 1.5.0
883  * @uses apply_filters() Calls 'home_template' on file path of home template.
884  *
885  * @return string
886  */
887 function get_home_template() {
888      $template = locate_template(array('home.php', 'index.php'));
889      return apply_filters('home_template', $template);
890 }
891
892 /**
893  * Retrieve path of front-page template in current or parent template.
894  *
895  * Looks for 'front-page.php'.
896  *
897  * @since 3.0.0
898  * @uses apply_filters() Calls 'front_page_template' on file path of template.