clanbite_social_kit_coerce_home_feed_to_profile_on_profile_urls( string $feed_context, int $profile_user_id ): array{0: string, 1: int}If the block still uses default home on a player/author profile URL, switch to the profile stream.
Block JSON defaults feedContext to home, so site templates often show the merged home feed (friends + global follows) on /players/…/ by accident. This keeps one feed block on profiles without editors having to toggle the attribute.
Uses explicit URL / author-archive signals only — not clanbite_player_profile_context_user_id(), because that helper intentionally mirrors the main query’s WP_User first (legacy behaviour) and can be non-zero on unrelated templates, which would wrongly coerce home feeds off player URLs.
Namespace: Kernowdev\ClanbiteSocialKit
Parameters
$feed_context(string) Requiredhome|profile|team.
$profile_user_id(int) RequiredValue from
profileUserId(0 if unset).
Returns
array{0: string, 1: int} Updated $feed_context and profile user id hint.
Defined in inc/functions.php