Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: twentytwelve_author_bio_avatar_size

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
49                     <div class="author-avatar">
50                          <?php
51                          /**
52                           * Filter the author bio avatar size.
53                           *
54                           * @since Twenty Twelve 1.0
55                           *
56                           * @param int $size The height and width of the avatar in pixels.
57                           */
58                          $author_bio_avatar_size = apply_filters( 'twentytwelve_author_bio_avatar_size', 68 );
59                          echo get_avatar( get_the_author_meta( 'user_email' ), $author_bio_avatar_size );
60                          ?>
61                     </div><!-- .author-avatar -->
62                     <div class="author-description">
63                          <h2><?php printf( __( 'About %s', 'twentytwelve' ), get_the_author() ); ?></h2>
64                          <p><?php the_author_meta( 'description' ); ?></p>
65                     </div><!-- .author-description     -->
66                </div><!-- .author-info -->
67                <?php endif; ?>