wppaste
WordPress

apply_filters( 'twentysixteen_author_avatar_size' )

Compatibility

WordPress
core
  • 6.7.10
  • 6.8.11
  • 6.9.10
  • 7.0.7
  • 7.1.3

Present in every tracked release (6.7.10 to 7.1.3).

Where this hook fires · 1

  • wp-content/themes/twentysixteen/inc/template-tags.php:22twentysixteen_entry_meta()

Source code

	 * Create your own twentysixteen_entry_meta() function to override in a child theme.	 *	 * @since Twenty Sixteen 1.0	 */	function twentysixteen_entry_meta() {		if ( 'post' === get_post_type() ) {			$author_avatar_size = apply_filters( 'twentysixteen_author_avatar_size', 49 );			printf(				'<span class="byline">%1$s<span class="screen-reader-text">%2$s </span><span class="author vcard"><a class="url fn n" href="%3$s">%4$s</a></span></span>',				get_avatar( get_the_author_meta( 'user_email' ), $author_avatar_size ),				/* translators: Hidden accessibility text. */				_x( 'Author', 'Used before post author name.', 'twentysixteen' ),				esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),

Changelog

One change between 6.7.10 and 7.1.3.

  1. 6.7.10
  2. 6.8.11
  3. 6.9.10
  4. 7.0.7
  5. 7.1.3

Signature, return type and hooks compared across 5 parsed releases.

6.9.10
Parameter $size added.verified against source

About this page

Parsed data
Generated from the wordpress-develop 6.8.11 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.