Clanbite Social Kit

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) Required

Post author user ID.

$viewer_id (int) Required

0 if logged out.

$page (int) Required

Page.

$per_page (int) Required

Per page.

$is_friend (bool) Optional

Precomputed friendship (optional).

Default: false

Returns

array{rows: object[], total: int}

Defined in inc/Social/Data_Access.php