clanbite_social_kit_resolve_feed_request( array $attributes, \WP_Block|null $block = null ): array{context: string, definition: \Kernowdev\ClanbiteSocialKit\Social\Feed_Context|null, subject: int, profile_user_id: int, team_id: int, group_id: int, viewer_id: int}Resolve which feed the Social feed / composer blocks should show for the given block attributes.
Single place for context resolution, so both blocks and third-party code agree. Understands every registered feed context (see \Kernowdev\ClanbiteSocialKit\Social\Feed_Context_Registry); a missing value means home, an unregistered one yields a null definition.
Namespace: Kernowdev\ClanbiteSocialKit
Parameters
$attributes(array<string, mixed>) RequiredBlock attributes (
feedContext,feedSubjectId, and the legacyprofileUserId,teamId,groupId).$block(\WP_Block|null) OptionalBlock instance when available (used to read player context).
Default:
null
Returns
array{context: string, definition: \Kernowdev\ClanbiteSocialKit\Social\Feed_Context|null, subject: int, profile_user_id: int, team_id: int, group_id: int, viewer_id: int} definition is null when the context is not registered.
Defined in inc/functions.php