Welcome, visitor! Log in

Source View: get_avatar

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.

  • Action hooks look like this: do_action( "hook_name" )
  • Filter hooks look like this: 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.

Source View

Line Code
2190       *
2191       * @since 2.5.0
2192       *
2193       * @param string            $avatar      Image tag for the user's avatar.
2194       * @param int|object|string $id_or_email A user ID, email address, or comment object.
2195       * @param int               $size        Square avatar width and height in pixels to retrieve.
2196       * @param string            $alt         Alternative text to use in the avatar image tag.
2197       *                                       Default empty.
2198       */
2199      return apply_filters( 'get_avatar', $avatar, $id_or_email, $size, $default, $alt );
2200 }
2201 endif;
2203 if ( !function_exists( 'wp_text_diff' ) ) :
2204 /**
2205  * Displays a human readable HTML representation of the difference between two strings.
2206  *
2207  * The Diff is available for getting the changes between versions. The output is
2208  * HTML, so the primary use is for displaying the changes. If the two strings