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 |
|---|---|
| 10 | |
| 11 | <div id="featured-content" class="featured-content"> |
| 12 | <div class="featured-content-inner"> |
| 13 | <?php |
| 14 | /** |
| 15 | * Fires before the Twenty Fourteen featured content. |
| 16 | * |
| 17 | * @since Twenty Fourteen 1.0 |
| 18 | */ |
| 19 | do_action( 'twentyfourteen_featured_posts_before' ); |
| 20 | |
| 21 | $featured_posts = twentyfourteen_get_featured_posts(); |
| 22 | foreach ( (array) $featured_posts as $order => $post ) : |
| 23 | setup_postdata( $post ); |
| 24 | |
| 25 | // Include the featured content template. |
| 26 | get_template_part( 'content', 'featured-post' ); |
| 27 | endforeach; |
| 28 | |