get_avatar with argument

4.01K viewsThemes
0

Hi, it is possible extend function
ap_author_avatar
with pass arguments to get_avatar?

this is native WP function =>
get_avatar( $id_or_email, $size, $default, $alt, array( ‘class’ => ‘my-class’, ‘data-img’ => ‘content’);

0

Hello Check this example:
https://github.com/anspress/anspress/blob/master/addons/free/avatar.php#L112