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 |
---|---|
25 | ?> |
26 |
|
27 | <h1 class="page-title author"><?php printf( __( 'Author Archives: %s', 'twentyten' ), "<span class='vcard'><a class='url fn n' href='" . get_author_posts_url( get_the_author_meta( 'ID' ) ) . "' title='" . esc_attr( get_the_author() ) . "' rel='me'>" . get_the_author() . "</a></span>" ); ?></h1> |
28 |
|
29 | <?php |
30 | // If a user has filled out their description, show a bio on their entries. |
31 | if ( get_the_author_meta( 'description' ) ) : ?> |
32 | <div id="entry-author-info"> |
33 | <div id="author-avatar"> |
34 | <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 60 ) ); ?> |
35 | </div><!-- #author-avatar --> |
36 | <div id="author-description"> |
37 | <h2><?php printf( __( 'About %s', 'twentyten' ), get_the_author() ); ?></h2> |
38 | <?php the_author_meta( 'description' ); ?> |
39 | </div><!-- #author-description --> |
40 | </div><!-- #entry-author-info --> |
41 | <?php endif; ?> |
42 |
|
43 | <?php |