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 |
---|---|
23 | <?php endif; ?> |
24 | </header><!-- .entry-header --> |
25 |
|
26 | <?php if ( is_search() ) : // Only display Excerpts for Search ?> |
27 | <div class="entry-summary"> |
28 | <?php the_excerpt(); ?> |
29 | </div><!-- .entry-summary --> |
30 | <?php else : ?> |
31 | <div class="entry-content"> |
32 | <div class="avatar"><?php echo get_avatar( get_the_author_meta( 'ID' ), apply_filters( 'twentyeleven_status_avatar', '65' ) ); ?></div> |
33 |
|
34 | <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?> |
35 | <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?> |
36 | </div><!-- .entry-content --> |
37 | <?php endif; ?> |
38 |
|
39 | <footer class="entry-meta"> |
40 | <?php twentyeleven_posted_on(); ?> |
41 | <?php if ( comments_open() ) : ?> |