Skip to content

friends_author_avatar_url

Alex Kirk edited this page May 11, 2024 · 1 revision

Allows modifying the avatar for a post.

Example

add_filter( 'friends_author_avatar_url', function( $avatar, $friend_user, $post_id ) {
    return get_avatar_url( 'mystery-man' );
}, 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, get_the_id() )
apply_filters( 'friends_author_avatar_url', $avatar, $friend_user, get_the_id() )

Hooks

Clone this wiki locally