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 |
|---|---|
| 649 | * Attempts to locate 'home.php' first before falling back to 'index.php'. |
| 650 | * |
| 651 | * @since 1.5.0 |
| 652 | * @uses apply_filters() Calls 'home_template' on file path of home template. |
| 653 | * |
| 654 | * @return string |
| 655 | */ |
| 656 | function get_home_template() { |
| 657 | $template = locate_template(array('home.php', 'index.php')); |
| 658 | return apply_filters('home_template', $template); |
| 659 | } |
| 660 | |
| 661 | /** |
| 662 | * Retrieve path of page template in current or parent template. |
| 663 | * |
| 664 | * First attempt is to look for the file in the '_wp_page_template' page meta |
| 665 | * data. The second attempt, if the first has a file and is not empty, is to |
| 666 | * look for 'page.php'. |
| 667 | * |