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 |
|---|---|
| 16 | |
| 17 | <header class="page-header"> |
| 18 | <h1 class="page-title"><?php |
| 19 | printf( __( 'Category Archives: %s', 'twentyeleven' ), '<span>' . single_cat_title( '', false ) . '</span>' ); |
| 20 | ?></h1> |
| 21 | |
| 22 | <?php |
| 23 | $category_description = category_description(); |
| 24 | if ( ! empty( $category_description ) ) |
| 25 | echo apply_filters( 'category_archive_meta', '<div class="category-archive-meta">' . $category_description . '</div>' ); |
| 26 | ?> |
| 27 | </header> |
| 28 | |
| 29 | <?php twentyeleven_content_nav( 'nav-above' ); ?> |
| 30 | |
| 31 | <?php /* Start the Loop */ ?> |
| 32 | <?php while ( have_posts() ) : the_post(); ?> |
| 33 | |
| 34 | <?php |