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 |
|---|---|
| 8 | */ |
| 9 | ?> |
| 10 | |
| 11 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
| 12 | <div class="entry-header"> |
| 13 | <header> |
| 14 | <h1><?php the_author(); ?></h1> |
| 15 | <h2><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a></h2> |
| 16 | </header> |
| 17 | <?php echo get_avatar( get_the_author_meta( 'ID' ), apply_filters( 'twentytwelve_status_avatar', '48' ) ); ?> |
| 18 | </div><!-- .entry-header --> |
| 19 | |
| 20 | <div class="entry-content"> |
| 21 | <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?> |
| 22 | </div><!-- .entry-content --> |
| 23 | |
| 24 | <footer class="entry-meta"> |
| 25 | <?php if ( comments_open() ) : ?> |
| 26 | <div class="comments-link"> |