# clanbite_events_block_query_collection()

Run the same collection query as `GET clanbite/v1/event-posts` for block SSR.

```php
clanbite_events_block_query_collection( array $params )
```

## Parameters

- `$params` (array<string, mixed>) Request params: team_id, group_id, player_user_id, page, per_page, time_scope, order, starts_after, starts_before, search.

## Return

`array{items: array<int, array<string, mixed>>, total: int}|WP_Error`
