-
Notifications
You must be signed in to change notification settings - Fork 16
friends_author_avatar_url
Alex Kirk edited this page Oct 16, 2024
·
2 revisions
Allows modifying the avatar for a post.
add_filter( 'friends_author_avatar_url', function( $avatar, $friend_user, $post_id ) {
return get_avatar_url( 'mystery-man' );
}, 10, 3 );
-
string
$avatar
The avatar. -
string
$friend_user
The friend user if any. -
int
$post_id
The post ID.
apply_filters( 'friends_author_avatar_url', $avatar, $friend_user, get_the_id() )
apply_filters( 'friends_author_avatar_url', $avatar, $friend_user, $_post->ID )