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 |
---|---|
48 |
|
49 | <footer class="entry-meta"> |
50 | <?php twentytwelve_entry_meta(); ?> |
51 | <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?> |
52 | <?php if ( is_singular() && get_the_author_meta( 'description' ) && is_multi_author() ) : // If a user has filled out their description and this is a multi-author blog, show a bio on their entries. ?> |
53 | <div class="author-info"> |
54 | <div class="author-avatar"> |
55 | <?php |
56 | /** This filter is documented in author.php */ |
57 | $author_bio_avatar_size = apply_filters( 'twentytwelve_author_bio_avatar_size', 68 ); |
58 | echo get_avatar( get_the_author_meta( 'user_email' ), $author_bio_avatar_size ); |
59 | ?> |
60 | </div><!-- .author-avatar --> |
61 | <div class="author-description"> |
62 | <h2><?php printf( __( 'About %s', 'twentytwelve' ), get_the_author() ); ?></h2> |
63 | <p><?php the_author_meta( 'description' ); ?></p> |
64 | <div class="author-link"> |
65 | <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"> |
66 | <?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'twentytwelve' ), get_the_author() ); ?> |