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 |
|---|---|
| 41 | ?> |
| 42 | |
| 43 | <?php twentytwelve_content_nav( 'nav-above' ); ?> |
| 44 | |
| 45 | <?php |
| 46 | // If a user has filled out their description, show a bio on their entries. |
| 47 | if ( get_the_author_meta( 'description' ) ) : ?> |
| 48 | <div class="author-info"> |
| 49 | <div class="author-avatar"> |
| 50 | <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentytwelve_author_bio_avatar_size', 60 ) ); ?> |
| 51 | </div><!-- .author-avatar --> |
| 52 | <div class="author-description"> |
| 53 | <h2><?php printf( __( 'About %s', 'twentytwelve' ), get_the_author() ); ?></h2> |
| 54 | <p><?php the_author_meta( 'description' ); ?></p> |
| 55 | </div><!-- .author-description --> |
| 56 | </div><!-- .author-info --> |
| 57 | <?php endif; ?> |
| 58 | |
| 59 | <?php /* Start the Loop */ ?> |