Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: front_page_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
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.
899  *
900  * @return string
901  */
902 function get_front_page_template() {
903      return apply_filters( 'front_page_template', locate_template( array('front-page.php') ) );
904 }
905
906 /**
907  * Retrieve path of page template in current or parent template.
908  *
909  * Will first look for the specifically assigned page template
910  * The will search for 'page-{slug}.php' followed by 'page-id.php'
911  * and finally 'page.php'
912  *