archivespress-authors-avatar

Developer Knowledge Level

This content is intended for WordPress developers, and it may require coding knowledge of WordPress, PHP, and JavaScript. Code examples provided here may contain errors or needs some additional coding. Make sure to test the code before using it on a live website!

Definition
apply_filters( "archivespress-authors-avatar", $avatar, $info, $size );
Arguments
Name
Type
Description
$avatar
null|string
Initially null; custom avatar markup.
$info
array
Author data including id, name, slug, email, and posts.
$size
int
Requested avatar size in pixels.
Returns
Return null to use WordPress get_avatar(), or return custom avatar HTML.

Runs for each author only when the configured avatar size is greater than zero. A non-null result is used as the avatar markup; return trusted HTML.

Rate this reference
0
0
4

You are not allowed to rate this post.

Leave a Comment

0
0
0
0
0
0
0
0
0