I would like to use gravatar image as background image for a button. When i use
get_avatar function it returns with height width src parameters.
But i need only gravatar url.
I mean like
Can anyone tell me how? Thanks
Just generate the URL yourself. It's just a hash of the user's email address.
This function requires that you pass the user's email address in ... but you could do anything you need to programatically grab the user's address.
Look at how it is implemented here:
Additionally check out the very simple Gravatar API:
You can try to hook into the