Clanbite Social Kit

count_profile_status_posts_visible_to_viewer( int $author_id, int $viewer_id ): int

Count post_type = status rows for a player profile, respecting the same visibility rules as self::query_profile_feed().

public static

Class: Kernowdev\ClanbiteSocialKit\Social\Data_Access

Parameters

$author_id (int) Required

Post author (player) user ID.

$viewer_id (int) Required

0 if logged out.

Returns

int

Defined in inc/Social/Data_Access.php