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
4160       * Filters the avatar URL.
4161       *
4162       * @since 4.2.0
4163       *
4164       * @param string $url         The URL of the avatar.
4165       * @param mixed  $id_or_email The Gravatar to retrieve. Accepts a user_id, gravatar md5 hash,
4166       *                            user email, WP_User object, WP_Post object, or WP_Comment object.
4167       * @param array  $args        Arguments passed to get_avatar_data(), after processing.
4168       */
4169      $args['url'] = apply_filters( 'get_avatar_url', $url, $id_or_email, $args );
4170
4171      /**
4172       * Filters the avatar data.
4173       *
4174       * @since 4.2.0
4175       *
4176       * @param array  $args        Arguments passed to get_avatar_data(), after processing.
4177       * @param mixed  $id_or_email The Gravatar to retrieve. Accepts a user_id, gravatar md5 hash,
4178       *                            user email, WP_User object, WP_Post object, or WP_Comment object.