Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: get_avatar_url

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

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       */