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 $avatar The avatar.
  • string $friend_user The friend user if any.
  • int $post_id The 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() )

← All Hooks