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 |
---|---|
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 | * |