get_avatar Not Taking Priority
-
Hi,
We are over-writing User avatars by hooking in to get_avatar:
add_filter( ‘get_avatar’ , ‘site_custom_avatar’ , 10 , 5 );This works great on page load for all users as we display a chosen background color and first initial as defined in our “site_custom_avatar” function.
However, when a user is on the page or post and adds a comment, or a new comment is dynamically loaded in, the avatars that show up are the gravatars (either mystery man as we set in wp settings or their gravatar image). Are you using a different function for these and or is this just a priority issue to over-write those avatars with our custom function as well?
Thanks in advance.
The topic ‘get_avatar Not Taking Priority’ is closed to new replies.