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
3669      /**
3670       * Filter the avatar URL.
3671       *
3672       * @since 4.2.0
3673       *
3674       * @param string            $url         The URL of the avatar.
3675       * @param int|object|string $id_or_email A user ID, email address, or comment object.
3676       * @param array             $args        Arguments passed to get_avatar_data(), after processing.
3677       */
3678      $args['url'] = apply_filters( 'get_avatar_url', $url, $id_or_email, $args );
3679
3680      /**
3681       * Filter the avatar data.
3682       *
3683       * @since 4.2.0
3684       *
3685       * @param array             $args        Arguments passed to get_avatar_data(), after processing.
3686       * @param int|object|string $id_or_email A user ID, email address, or comment object.
3687       */