Clanbite Social Kit

clanbite_social_kit_profile_user_id_for_feed_store( string $feed_context, int $profile_user_id, int $viewer_id ): int

profileUserId stored in the shared feed Interactivity context.

Home mode is always the logged-in viewer: URL and main-query user must not change it. Profile mode uses the value resolved upstream (block attribute, context, query, fallbacks).

Namespace: Kernowdev\ClanbiteSocialKit

Parameters

$feed_context (string) Required

home|profile|team.

$profile_user_id (int) Required

Resolved profile owner when in profile mode.

$viewer_id (int) Required

get_current_user_id() or 0.

Returns

int

Defined in inc/functions.php