friends_author_avatar_url - akirk/friends GitHub Wiki
Allows modifying the avatar for a post.
Auto-generated Example
add_filter(
'friends_author_avatar_url',
function(
string $avatar,
string $friend_user,
int $post_id
) {
// Your code here.
return $avatar;
},
10,
3
);
Parameters
string$avatarThe avatar.string$friend_userThe friend user if any.int$post_idThe post ID.
Files
apply_filters( 'friends_author_avatar_url', $avatar, $friend_user, $_post->ID )
apply_filters( 'friends_author_avatar_url', $avatar, $friend_user, get_the_id() )
apply_filters( 'friends_author_avatar_url', $avatar, $friend_user, get_the_id() )