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.


Top ↑

Parameters

$avatar_defaults

(string[])Associative array of default avatars.


Top ↑

Source

File: wp-admin/options-discussion.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
2.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.