Tribe__Tickets__REST__V1__Main::parse_events_rest_args( array $args, array $data, WP_REST_Request $request )
Filter the args for Event Query over REST API.
Contents
Parameters
- $args
-
(array) (Required) Arguments used to get the events from the archive page.
- $data
-
(array) (Required) Array with the data to be returned to the REST response.
- $request
-
(WP_REST_Request) (Required) The request object.
Return
(mixed)
Source
File: src/Tribe/REST/V1/Main.php
public function parse_events_rest_args( $args, $data, $request ) {
if ( isset( $request['ticketed'] ) ) {
$args['has_rsvp_or_tickets'] = tribe_is_truthy( $request['ticketed'] );
}
return $args;
}
Changelog
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |