Clanbite

clanbite_player_blocks_resolve_subject_user_id( \WP_Block|null $block = null ): int

Resolves the subject user ID for Clanbite player blocks on the front end.

Uses clanbite_player_profile_context_user_id() first (author archive, player settings), then the block postId context author, then the logged-in user.

Parameters

$block (\WP_Block|null) Optional

Optional block instance for post context.

Default: null

Returns

int User ID or 0 if none resolved.

Defined in inc/extensions/players/functions.php