Simple Local Avatar Plugin

The get_avatar function is pluggable, meaning that you can define a function of your own having that name and completely overwrite the default function.

If you look at the source for the “Simple Local Avatars” plugin, that is exactly what it has done. get_avatar in your code should be using the function defined by “Simple Local Avatars”.

“Simple Local Avatars” provides a simplified function, get_simple_local_avatar, that you can use instead if you want.