avatar_defaults WordPress Filter Hook
The avatar_defaults hook allows you to change the default values for avatars in WordPress. This hook is useful if you want to change the default avatar size or default avatar type.
apply_filters( 'avatar_defaults', string[] $avatar_defaults ) #
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
Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |