Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WordPress function get_avatar_url() returns the default WP user avatar and not the auth0 avatar #837

Closed
Simon-ProjectPartners opened this issue Nov 9, 2021 · 2 comments
Assignees

Comments

@Simon-ProjectPartners
Copy link

Describe the problem

Native WordPress functions that get the user avatar, such as get_avatar_url() don't return the auth0 avatar.

What was the expected behavior?

get_avatar_url() should return the auth0 avatar.

Reproduction

Call <img src="<?php echo get_avatar_url(); ?> > in any WP template file.

Install WP Auth0.

Create new user.

Log in with e.g Azure AD.

Auth0 avatars can be seen on the "Users" admin page of the WordPress dashboard, but get_avatar_url() still shows the default WP user avatar.

Environment

  • Version of this library used: Latest
  • Which framework are you using, if applicable: _s WordPress theme
  • Other modules/plugins/libraries that might be involved: -
  • Any other relevant information you think would be useful: -
@evansims
Copy link
Member

evansims commented Nov 16, 2021

Hi @Simon-ProjectPartners 👋 Have you enabled the Auth0 plugin's configuration option to override avatars? We currently support this behavior using the get_avatar() method. get_avatar_url() is not currently supported for this.

@evansims evansims self-assigned this Nov 16, 2021
@Simon-ProjectPartners
Copy link
Author

Hi @evansims 👋

Thanks for getting back to me. Yes, I did.

Ohh I see, will try my luck with get_avatar(). Thanks!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants