Clanbite Social Kit

clanbite_social_kit_resolve_feed_profile_user_id( int $from_attribute, \WP_Block|null $block = null ): int

Resolve the profile stream owner when feedContext is profile and profileUserId is not set in the block.

Order: block attribute (handled by caller), block context clanbite/playerId, main-query WP_User, author_name, canonical /players/{nicename}/, then player settings for the logged-in viewer.

Namespace: Kernowdev\ClanbiteSocialKit

Parameters

$from_attribute (int) Required

Value from block profileUserId (0 if unset).

$block (\WP_Block|null) Optional

Block instance.

Default: null

Returns

int

Defined in inc/functions.php