We are glad to welcome you to our Community Support Forums!
These forums are your way of communicating with the community of people developing and using tools provided by the OneAll platform.
The forums are run by the community and moderated by the OneAll team during office hours. Please stick to technical issues - and remember, no confidential information - these are public forums!

wordpress avatar question

Your wordpress plugin replaces the default avatars used in the system with social network avatars. (which is totally okay for me)
I need to use the social network avatar of current user in my wordpress theme, as they login.

If i use the function:
get_avatar( $current_user->ID);
Everything is okay – i get the avatar from social network inside the image tag.

But if use the function:
get_avatar_url( $current_user->ID);
In return i receive the URL of the default Gravatar and not the Social network avatar URL.


How do i get the URL of the social network via your plugin?
I haven't found anything like it in the documentation

Best Answer

  • Answer ✓
    found the solution!

    i have dublicated function oa_social_login_custom_avatar in user_interface.php

    and modified the return:

    return $user_picture;

    now it replaces the get_avatar_url function

Answers

Sign in with your OneAll account to take part in the discussion.