Search code examples
phpgravatar

How do you force Gravatar into displaying identicon


Is there any way to force gravatar to always return the identicon URL?

The only way I found so far is: ?forcedefault=1&default=myCustomGeneratedImageUrlHere. However I don't want to generate an identicon myself.

Any ?forceIdenticon param?


Solution

  • I ended up with just using md5(MY_CUSTOM_SALT + $email) as an identifier.