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 | </header> |
| 17 | <?php |
| 18 | /** |
| 19 | * Filter the status avatar size. |
| 20 | * |
| 21 | * @since Twenty Twelve 1.0 |
| 22 | * |
| 23 | * @param int $size The height and width of the avatar in pixels. |
| 24 | */ |
| 25 | $status_avatar = apply_filters( 'twentytwelve_status_avatar', 48 ); |
| 26 | echo get_avatar( get_the_author_meta( 'ID' ), $status_avatar ); |
| 27 | ?> |
| 28 | </div><!-- .entry-header --> |
| 29 | |
| 30 | <div class="entry-content"> |
| 31 | <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?> |
| 32 | </div><!-- .entry-content --> |
| 33 | |
| 34 | <footer class="entry-meta"> |