Filter hook 'get_avatar_url'

in WP Core File wp-includes/link-template.php at line 4544

Description

Filters the avatar URL.

Occurrences

Filename Line Number
wp-includes/link-template.php 4544

Parameters

Type Name Description
string $url The URL of the avatar.
mixed $id_or_email The avatar to retrieve. Accepts a user ID, Gravatar MD5 hash, user email, WP_User object, WP_Post object, or WP_Comment object.
array $args Arguments passed to get_avatar_data(), after processing.

PHP Doc

/**
	 * Filters the avatar URL.
	 *
	 * @since 4.2.0
	 *
	 * @param string $url         The URL of the avatar.
	 * @param mixed  $id_or_email The avatar to retrieve. Accepts a user ID, Gravatar MD5 hash,
	 *                            user email, WP_User object, WP_Post object, or WP_Comment object.
	 * @param array  $args        Arguments passed to get_avatar_data(), after processing.
	 */