Tribe__Tickets__REST__V1__Endpoints__Cart::READ_args()

{@inheritDoc}

Contents


Source

File: src/Tribe/REST/V1/Endpoints/Cart.php

	public function READ_args() {
		return [
			'provider' => [
				'required'          => false,
				'description'       => __( 'Limit results to tickets provided by one of the providers specified in the CSV list or array; defaults to all available.', 'event-tickets' ),
				'sanitize_callback' => [
					'Tribe__Utils__Array',
					'list_to_array',
				],
				'swagger_type'      => [
					'oneOf' => [
						[
							'type'  => 'array',
							'items' => [
								'type' => 'string',
							],
						],
						[
							'type' => 'string',
						],
					],
				],
			],
			'post_id'  => [
				'required'          => false,
				'type'              => 'integer',
				'description'       => __( 'The post ID', 'event-tickets' ),
				'validate_callback' => [ $this->validator, 'is_post_id' ],
			],
		];
	}

Top ↑

Changelog

Changelog
Version Description
4.11.0 Introduced.