I need for a specific plugin to override the wordpress function
get_avatar() to bind the profile image to an other image with some condition.
How can I do this ? Is there a specific hook or filter to do this ?
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.Sign up to join this community
There is get_avatar filter. codex ref
I can ovveride in
functions.php the function
get_avatar() but the best way seems to use the filter
I found the answer here : https://codex.wordpress.org/Plugin_API/Filter_Reference/get_avatar