class Rest_ControllerRegisters read-only routes for theme and headless consumers.
class
- Full name
Kernowdev\Clanbite\Extensions\Matches\Rest_Controller
Methods
__construct()build_list_meta_query()Combine team and status constraints for WP_Query::meta_query.get_match()Fetch a single match by post ID.get_matches()List matches with optional filters and pagination.read_permission()Public read access for route registration.register_routes()Register REST routes on rest_api_init.
Defined in inc/extensions/matches/class-matches-rest.php