apply_filters( 'twentysixteen_author_avatar_size', int $size )
- Since
- Twenty Sixteen 1.0
Filters the Twenty Sixteen entry meta avatar size.
Compatibility
- WordPress
- since Twenty Sixteen 1.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$sizeint- The avatar height and width size in pixels.
Where this hook fires · 1
wp-content/themes/twentysixteen/inc/template-tags.php:29twentysixteen_entry_meta()
Source code
* Filters the Twenty Sixteen entry meta avatar size. * * @since Twenty Sixteen 1.0 * * @param int $size The avatar height and width size in pixels. */ $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
Introduced in Twenty Sixteen 1.0. One change between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
6.9.7
Parameter
$size added.verified against sourceTwenty Sixteen 1.0
Twenty Sixteen 1.0from the docblock
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 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.