WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| 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 | * |