Filters the default avatars.
Description
Avatars are stored in key/value pairs, where the key is option value, and the name is the displayed avatar name.
Parameters
$avatar_defaults
string[]- Associative array of default avatars.
Source
$avatar_defaults = apply_filters( 'avatar_defaults', $avatar_defaults );
Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |
Put the image address on the key and a title for it on the value.
After that, you must go to
Settings >> Discussion > Default Avatar
and you’ll see the new image in the bottom of options for gravatar. Select it and save changes.You can see the new avatars in action going to Edit Users admin sreen.