Getting user avatar from username

I am working on a plugin and I want to display the avatar of users. Is there a way to get a user avatar using their username?

1 Like

You could try making an XHR to the users page. eg.


is there is a way to get a user without using making a request? With categories, there is a find category.findBySlug() or category.findbyId(). Is there something like that for users?

Thank you.

1 Like