friends_author_url - akirk/friends GitHub Wiki
Allows modifying the author URL for a post.
Auto-generated Example
add_filter(
'friends_author_url',
function(
string $author_url,
Friends\User $friend_user,
int $post_id
) {
// Your code here.
return $author_url;
},
10,
3
);
Parameters
string$author_urlThe author URL.Friends\User$friend_userThe friend user if any.int$post_idThe post ID.
Files
apply_filters( 'friends_author_url', $friend_user->get_local_friends_page_url(), $friend_user, get_the_id() )
apply_filters( 'friends_author_url', $friend_user->get_local_friends_page_url(), $friend_user, get_the_id() )