Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: twentysixteen_author_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
13      /**
14       * Prints HTML with meta information for the categories, tags.
15       *
16       * Create your own twentysixteen_entry_meta() function to override in a child theme.
17       *
18       * @since Twenty Sixteen 1.0
19       */
20      function twentysixteen_entry_meta() {
21           if ( 'post' === get_post_type() ) {
22                $author_avatar_size = apply_filters( 'twentysixteen_author_avatar_size', 49 );
23                printf(
24                     '<span class="byline"><span class="author vcard">%1$s<span class="screen-reader-text">%2$s </span> <a class="url fn n" href="%3$s">%4$s</a></span></span>',
25                     get_avatar( get_the_author_meta( 'user_email' ), $author_avatar_size ),
26                     _x( 'Author', 'Used before post author name.', 'twentysixteen' ),
27                     esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
28                     get_the_author()
29                );
30           }
31