# clanbite_team_block_resolve_team_id()

Resolve the current `cp_team` post ID for team blocks.

Order: block context (`postId` / `postType`, e.g. Query Loop) → main-query singular `cp_team`
(covers plugin block templates before `the_post()`) → `get_the_ID()` → global `$post` → queried object.

```php
clanbite_team_block_resolve_team_id( array $block_context = array() ): int
```

## Parameters

- `$block_context` (array<string, mixed>) Block context (`$block->context`).

## Return

`int` Team post ID or 0 when none applies.
