query_profile_feed( int $author_id, int $viewer_id, int $page, int $per_page, bool $is_friend = false ): array{rows: object[], total: int}Profile feed: posts by one author, visibility rules for viewer.
Includes activity posts (team_created, team_joined, friendship_accepted) even if they have a team_id, since those are user-centric activities.
public static
Class: Kernowdev\ClanbiteSocialKit\Social\Data_Access
Parameters
$author_id(int) RequiredPost author user ID.
$viewer_id(int) Required0 if logged out.
$page(int) RequiredPage.
$per_page(int) RequiredPer page.
$is_friend(bool) OptionalPrecomputed friendship (optional).
Default:
false
Returns
array{rows: object[], total: int}
Defined in inc/Social/Data_Access.php