Tribe__Tickets__Ticket_Repository::__construct()
Tribe__Tickets__Ticket_Repository constructor.
Source
File: src/Tribe/Ticket_Repository.php
public function __construct() {
parent::__construct();
$this->create_args['post_type'] = current( $this->ticket_types() );
$this->default_args = [
'post_type' => $this->ticket_types(),
'orderby' => [ 'date', 'ID' ],
];
$this->schema = array_merge( $this->schema, [
'event' => [ $this, 'filter_by_event' ],
'event_not_in' => [ $this, 'filter_by_event_not_in' ],
'is_available' => [ $this, 'filter_by_availability' ],
'provider' => [ $this, 'filter_by_provider' ],
'attendees_min' => [ $this, 'filter_by_attendees_min' ],
'attendees_max' => [ $this, 'filter_by_attendees_max' ],
'attendees_between' => [ $this, 'filter_by_attendees_between' ],
'checkedin_min' => [ $this, 'filter_by_checkedin_min' ],
'checkedin_max' => [ $this, 'filter_by_checkedin_max' ],
'checkedin_between' => [ $this, 'filter_by_checkedin_between' ],
'capacity_min' => [ $this, 'filter_by_capacity_min' ],
'capacity_max' => [ $this, 'filter_by_capacity_max' ],
'capacity_between' => [ $this, 'filter_by_capacity_between' ],
'available_from' => [ $this, 'filter_by_available_from' ],
'available_until' => [ $this, 'filter_by_available_until' ],
'event_status' => [ $this, 'filter_by_event_status' ],
'has_attendee_meta' => [ $this, 'filter_by_attendee_meta_existence' ],
'currency_code' => [ $this, 'filter_by_currency_code' ],
] );
}
Changelog
| Version | Description |
|---|---|
| 4.8 | Introduced. |