How to restore $args for get_avatar custom “class”?
If you look at the documentation for teh get_avatar() filter, you’ll see that callbacks can accept 6 arguments: apply_filters( ‘get_avatar’, string $avatar, mixed $id_or_email, int $size, string $default, string $alt, array $args ) Which means that your callback function is accepting the arguments correctly, including the 6th argument, $args: function tsm_acf_profile_avatar( $avatar, $id_or_email, $size, $default, … Read more