WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
3611 | /** |
3612 | * Filter the avatar URL. |
3613 | * |
3614 | * @since 4.2.0 |
3615 | * |
3616 | * @param string $url The URL of the avatar. |
3617 | * @param int|object|string $id_or_email A user ID, email address, or comment object. |
3618 | * @param array $args Arguments passed to get_avatar_data(), after processing. |
3619 | */ |
3620 | $args['url'] = apply_filters( 'get_avatar_url', $url, $id_or_email, $args ); |
3621 |
|
3622 | /** |
3623 | * Filter the avatar data. |
3624 | * |
3625 | * @since 4.2.0 |
3626 | * |
3627 | * @param array $args Arguments passed to get_avatar_data(), after processing. |
3628 | * @param int|object|string $id_or_email A user ID, email address, or comment object. |
3629 | */ |