Tribe__Tickets__REST__V1__Endpoints__Attendee_Archive::READ_args()
Returns the content of the args array that should be used to register the endpoint with the register_rest_route function.
Return
(array)
Source
File: src/Tribe/REST/V1/Endpoints/Attendee_Archive.php
public function READ_args() {
return array(
'page' => array(
'description' => __( 'The page of results to return; defaults to 1', 'event-tickets' ),
'type' => 'integer',
'required' => false,
'default' => 1,
'sanitize_callback' => 'absint',
'minimum' => 1,
),
'per_page' => array(
'description' => __( 'How many attendees to return per results page; defaults to posts_per_page.', 'event-tickets' ),
'type' => 'integer',
'required' => false,
'default' => get_option( 'posts_per_page' ),
'minimum' => 1,
'maximum' => 100,
'sanitize_callback' => 'absint',
),
'provider' => array(
'description' => __( 'Limit results to attendees whose ticket is provided by one of the providers specified in the CSV list or array; defaults to all the available.', 'event-tickets' ),
'type' => 'string',
'required' => false,
'validate_callback' => array( $this->validator, 'is_string' ),
'sanitize_callback' => array( $this->validator, 'trim' ),
'swagger_type' => array(
'oneOf' => array(
array( 'type' => 'array', 'items' => array( 'type' => 'string' ) ),
array( 'type' => 'string' ),
),
),
),
'search' => array(
'description' => __( 'Limit results to attendees containing the specified string in the title or description.', 'event-tickets' ),
'type' => 'string',
'required' => false,
'validate_callback' => array( $this->validator, 'is_string' ),
),
'offset' => array(
'description' => __( 'Offset the results by a specific number of items.', 'event-tickets' ),
'type' => 'integer',
'required' => false,
'min' => 0,
),
'order' => array(
'description' => __( 'Sort results in ASC or DESC order. Defaults to ASC.', 'event-tickets' ),
'type' => 'string',
'required' => false,
'enum' => array(
'ASC',
'DESC',
),
),
'orderby' => array(
'description' => __( 'Order the results by one of date, relevance, id, include, title or slug. Defaults to id.', 'event-tickets' ),
'type' => 'string',
'required' => false,
'enum' => array(
'id',
'date',
'include',
'title',
'slug',
),
),
'post_id' => array(
'description' => __( 'Limit results to attendees by post the ticket is associated with.', 'event-tickets' ),
'type' => 'integer',
'required' => false,
'validate_callback' => array( $this->validator, 'is_post_id' ),
),
'ticket_id' => array(
'description' => __( 'Limit results to attendees associated with a ticket.', 'event-tickets' ),
'type' => 'integer',
'required' => false,
'validate_callback' => array( $this->validator, 'is_ticket_id' ),
),
'after' => array(
'description' => __( 'Limit results to attendees created after or on the specified UTC date or timestamp.', 'event-tickets' ),
'type' => 'string',
'required' => false,
'validate_callback' => array( $this->validator, 'is_time' ),
),
'before' => array(
'description' => __( 'Limit results to attendees created before or on the specified UTC date or timestamp.', 'event-tickets' ),
'type' => 'string',
'required' => false,
'validate_callback' => array( $this->validator, 'is_time' ),
),
'include' => array(
'description' => __( 'Limit results to a specific CSV list or array of attendee IDs.', 'event-tickets' ),
'required' => false,
'validate_callback' => array( $this->validator, 'is_positive_int_list' ),
'sanitize_callback' => array( 'Tribe__Utils__Array', 'list_to_array' ),
'swagger_type' => array(
'oneOf' => array(
array( 'type' => 'array', 'items' => array( 'type' => 'integer' ) ),
array( 'type' => 'string' ),
array( 'type' => 'integer' ),
),
),
),
'exclude' => array(
'description' => __( 'Exclude a specific CSV list or array of attendee IDs from the results.', 'event-tickets' ),
'required' => false,
'validate_callback' => array( $this->validator, 'is_positive_int_list' ),
'sanitize_callback' => array( 'Tribe__Utils__Array', 'list_to_array' ),
'swagger_type' => array(
'oneOf' => array(
array( 'type' => 'array', 'items' => array( 'type' => 'integer' ) ),
array( 'type' => 'string' ),
array( 'type' => 'integer' ),
),
),
),
'price_max' => array(
'description' => __( 'Limit results to attendees that paid tickets a price equal or below the specified value; if not specified no maximum price limit will be used.', 'event-tickets' ),
'type' => 'integer',
'min' => 0,
'required' => false,
),
'price_min' => array(
'description' => __( 'Limit results to attendees that paid tickets a price equal or above the specified value; if not specified no minimum price limit will be used.', 'event-tickets' ),
'type' => 'integer',
'min' => 0,
'required' => false,
),
'include_post' => array(
'description' => __( 'Limit results to attendees whose ticket is assigned to one of the posts specified in the CSV list or array.', 'event-tickets' ),
'required' => false,
'validate_callback' => array( $this->validator, 'is_post_id_list' ),
'sanitize_callback' => array( 'Tribe__Utils__Array', 'list_to_array' ),
'swagger_type' => array(
'oneOf' => array(
array( 'type' => 'array', 'items' => array( 'type' => 'integer' ) ),
array( 'type' => 'string' ),
array( 'type' => 'integer' ),
),
),
),
'exclude_post' => array(
'description' => __( 'Limit results to attendees whose tickets is not assigned to any of the posts specified in the CSV list or array..', 'event-tickets' ),
'required' => false,
'validate_callback' => array( $this->validator, 'is_post_id_list' ),
'sanitize_callback' => array( 'Tribe__Utils__Array', 'list_to_array' ),
'swagger_type' => array(
'oneOf' => array(
array( 'type' => 'array', 'items' => array( 'type' => 'integer' ) ),
array( 'type' => 'string' ),
array( 'type' => 'integer' ),
),
),
),
'include_ticket' => array(
'description' => __( 'Limit results to a specific CSV list or array of ticket IDs.', 'event-tickets' ),
'required' => false,
'validate_callback' => array( $this->validator, 'is_ticket_id_list' ),
'swagger_type' => array(
'oneOf' => array(
array( 'type' => 'array', 'items' => array( 'type' => 'integer' ) ),
array( 'type' => 'string' ),
array( 'type' => 'integer' ),
),
),
),
'exclude_ticket' => array(
'description' => __( 'Exclude a specific CSV list or array of ticket IDs.', 'event-tickets' ),
'required' => false,
'validate_callback' => array( $this->validator, 'is_ticket_id_list' ),
'swagger_type' => array(
'oneOf' => array(
array( 'type' => 'array', 'items' => array( 'type' => 'integer' ) ),
array( 'type' => 'string' ),
array( 'type' => 'integer' ),
),
),
),
'post_status' => array(
'description' => __( 'Limit results to attendees for posts that are in one of the post statuses specified in the CSV list or array; defaults to publish.', 'event-tickets' ),
'required' => false,
'sanitize_callback' => array( 'Tribe__Utils__Array', 'list_to_array' ),
'swagger_type' => array(
'oneOf' => array(
array( 'type' => 'array', 'items' => array( 'type' => 'string' ) ),
array( 'type' => 'string' ),
),
),
),
'status' => array(
'description' => __( 'Limit results to attendees that are in one of post statuses specified in the CSV list or array; defaults to publish.', 'event-tickets' ),
'required' => false,
'sanitize_callback' => array( 'Tribe__Utils__Array', 'list_to_array' ),
'swagger_type' => array(
'oneOf' => array(
array( 'type' => 'array', 'items' => array( 'type' => 'string' ) ),
array( 'type' => 'string' ),
),
),
),
'order_status' => array(
'description' => __( 'Limit results to attendees whose order status is in one of post statuses specified in the CSV list or array; defaults to public.', 'event-tickets' ),
'required' => false,
'sanitize_callback' => array( 'Tribe__Utils__Array', 'list_to_array' ),
'swagger_type' => array(
'oneOf' => array(
array( 'type' => 'array', 'items' => array( 'type' => 'string' ) ),
array( 'type' => 'string' ),
),
),
),
'checkedin' => array(
'description' => __( 'Limit results to attendees that are or not checked-in.', 'event-tickets' ),
'required' => false,
'type' => 'boolean',
),
'rsvp_going_status' => array(
'description' => __( 'Limit results to RSVP Attendees that have one of the RSVP Going status specified in the CSV list or array.', 'event-tickets' ),
'required' => false,
'sanitize_callback' => array( 'Tribe__Utils__Array', 'list_to_array' ),
'swagger_type' => array(
'oneOf' => array(
array( 'type' => 'array', 'items' => array( 'type' => 'string' ) ),
array( 'type' => 'string' ),
),
),
),
'attendee_information_available' => array(
'description' => __( 'Limit results to attendees for tickets that provide attendees the possibility to fill in additional information or not; requires ET+.', 'event-tickets' ),
'required' => false,
'type' => 'boolean',
),
);
}