wzpa_get_avatar
Filters the HTML for a user’s avatar.
Type: filter
Since: 1.1.0
Source: includes/frontend/class-display.php line 622
Parameters
| Type | Name | Description |
|---|---|---|
string | $avatar | HTML for the user’s avatar. |
\WP_User|int | $author | Author’s \WP_User object or user ID. |
array | $avatar_args | Arguments passed to get_avatar(), after processing. |
Usage
add_filter( 'wzpa_get_avatar', function($avatar, $author, $avatar_args) {
// ...
return $avatar;
} );