Class parameter in get_avatar args doesn’t get added to output

Question

I try to add custom class on get avatar in comment walker

get_avatar( $comment, $args['avatar_size'], '', '', array('class' => 'myclass') );

But class doesn’t show in source code.
Thx

Edit :
Output

<img src="...default.png" width="48" height="48" alt="Avatar" class="avatar avatar-48wp-user-avatar wp-user-avatar-48 alignnone photo avatar-default">
0
, , David Sticker 1 year 2020-07-16T13:10:49-05:00 0 Answers 53 views 0

Leave an answer

Browse
Browse