WordPress at a glance
filter is not described

get_avatar filter-hook . WP 2.5.0

Filters the HTML for a user's avatar.

Usage

add_filter( 'get_avatar', 'filter_function_name_7768', 10, 6 );
function filter_function_name_7768( $avatar, $id_or_email, $size, $default, $alt, $args ){
	// filter...

	return $avatar;
}
$avatar(string)
HTML for the user's avatar.
$id_or_email(mixed)
The avatar to retrieve. Accepts a user_id, Gravatar MD5 hash, user email, WP_User object, WP_Post object, or WP_Comment object.
$size(int)
Square avatar width and height in pixels to retrieve.
$default(string)
URL for the default image or a default type. Accepts '404', 'retro', 'monsterid', 'wavatar', 'indenticon', 'mystery', 'mm', 'mysteryman', 'blank', or 'gravatar_default'.
Default: value of the 'avatar_default' option, with a fallback of 'mystery'
$alt(string)
Alternative text to use in the avatar image tag.
Default: ''
$args(array)
Arguments passed to get_avatar_data(), after processing.

Список изменений

С версии 2.5.0 Введена.
С версии 4.2.0 The $args parameter was added.

Где вызывается хук

get_avatar()
get_avatar
wp-includes/pluggable.php 2748
return apply_filters( 'get_avatar', $avatar, $id_or_email, $args['size'], $args['default'], $args['alt'], $args );
wp-includes/pluggable.php 2678
return apply_filters( 'get_avatar', $avatar, $id_or_email, $args['size'], $args['default'], $args['alt'], $args );

Где используется хук в ядре WP

Использование не найдено.