Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: twentytwelve_status_avatar

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

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">&rarr;</span>', 'twentytwelve' ) ); ?>
32           </div><!-- .entry-content -->
33
34           <footer class="entry-meta">