GET /wp-json/clanbite/v1/matchesGET
List matches with optional filters and pagination.
Access is checked by read_permission().
| Argument | Type | Default | Description |
|---|---|---|---|
team | integer | 0 | Filter matches involving this team (post ID). |
status | string | '' | Filter by match status slug. |
per_page | integer | 10 | Minimum 1 ยท Maximum 100 |
page | integer | 1 | Minimum 1 |
order | string | asc | Sort scheduled time ascending or descending. One of asc, desc |
Handled by get_matches()
Example
curl -X GET 'https://example.com/wp-json/clanbite/v1/matches'Defined in inc/extensions/matches/class-matches-rest.php