150 | | echo '<img src="' . $gravatar . $person_data[1] . '?s=' . $size . '" class="gravatar" alt="' . esc_attr( $person_data[0] ) . '" /></a>' . "\n\t"; |
| 150 | $alt = $person_data[0]; |
| 151 | $email_hash = $person_data[1]; |
| 152 | $avatar = '<img src="' . $gravatar . $email_hash . '?s=' . $size . '" class="gravatar" alt="' . esc_attr( $alt ) . '" /></a>' . "\n\t"; |
| 153 | |
| 154 | $id_or_email = $email_hash; |
| 155 | $default = ''; |
| 156 | /** |
| 157 | * Apply filter on Gravatars. |
| 158 | * |
| 159 | * Run through apply_filters('get_avatar', $avatar) for the sake of extensibility. |
| 160 | * |
| 161 | * @since 4.0 |
| 162 | * |
| 163 | * @param integer|string|object $id_or_email Author’s User ID (an integer or string), an E-mail Address (a string) or the comment object from the comment loop |
| 164 | * @param int $size Size of Gravatar to return (max is 512) |
| 165 | * @param string $default Url for an image, defaults to the "Mystery Man" (optional). |
| 166 | * @param string $alt Alternate text for the avatar (optional). |
| 167 | */ |
| 168 | echo apply_filters( 'get_avatar', $avatar, $id_or_email, $size, $default, $alt ); |
| 169 | |