determining if avatar exists
Author | Posts |
---|---|
March 23, 2013 at 12:13 am 1433 | |
Tareq Hasan | You guys must be doing something to make the get_avatar return a local avatar rather than just gravatar, right? I need to determine if there is an avatar available for a user - either a gravatar or a local avatar. Is there a way to do that? |
March 23, 2013 at 1:36 am 1435 | |
Mahi | Helo cheekyboots, We are not doing anything here 🙂 . The profile image is displayed by the standard |
March 23, 2013 at 1:55 am 1437 | |
cheekyboots | No. get_avatar() by itself only returns gravatars. Never mind, I searched your codebase. You are filtering get_avatar() in the wpuf-functions.php file on line 553 so it uses wpuf_get_avatar to look for a local avatar first. |
March 23, 2013 at 2:05 am 1438 | |
Mahi | WordPress by default shows image using Gravatar . In registration form settings option their is a profile field – Avatar . By default, wpuf plugin try to get this Avatar (if its been using or not) , then try to get Gravatar . Cheers. |
March 23, 2013 at 2:23 am 1439 | |
cheekyboots | Yes, I just said that. |
March 23, 2013 at 3:26 am 1441 | |
Tareq Hasan | Yeah, you are right. It’s filtering the |