Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: twentyten_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
31
32                          <div class="entry-content">
33                               <?php the_content(); ?>
34                               <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
35                          </div><!-- .entry-content -->
36
37 <?php if ( get_the_author_meta( 'description' ) ) : // If a user has filled out their description, show a bio on their entries  ?>
38                          <div id="entry-author-info">
39                               <div id="author-avatar">
40                                    <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 60 ) ); ?>
41                               </div><!-- #author-avatar -->
42                               <div id="author-description">
43                                    <h2><?php printf( esc_attr__( 'About %s', 'twentyten' ), get_the_author() ); ?></h2>
44                                    <?php the_author_meta( 'description' ); ?>
45                                    <div id="author-link">
46                                         <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>">
47                                              <?php printf( __( 'View all posts by %s <span class="meta-nav">&rarr;</span>', 'twentyten' ), get_the_author() ); ?>
48                                         </a>
49                                    </div><!-- #author-link     -->