Order::__construct()

Tribe__Tickets__Attendee_Repository constructor.

Contents


Source

File: src/Tribe/Repositories/Order.php

	public function __construct() {
		parent::__construct();

		// The extending repository must specify $this->default_args['post_type'] and set it to a valid post type.
		$this->default_args = array_merge( $this->default_args, [
			'post_type'   => '_no_order_type_set',
			'orderby'     => [ 'date', 'title', 'ID' ],
			'post_status' => 'any',
		] );

		$this->init_order_statuses();

		$this->schema = [
			'order_status' => [ $this, 'filter_by_order_status' ],
		];
	}

Top ↑

Changelog

Changelog
Version Description
5.1.0 Introduced.