Tickets_Repository::__construct()

{@inheritdoc}


Source

File: src/Tickets/Commerce/Repositories/Tickets_Repository.php

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

		// Set the order post type.
		$this->default_args['post_type']   = Ticket::POSTTYPE;
		$this->default_args['post_status'] = 'publish';
		$this->create_args['post_status']  = 'publish';
		$this->create_args['post_type']    = Ticket::POSTTYPE;

		// Add event specific aliases.
		$this->update_fields_aliases = array_merge(
			$this->update_fields_aliases,
			[
				'event'            => Ticket::$event_relation_meta_key,
				'show_description' => Ticket::$show_description_meta_key,
				'price'            => Ticket::$price_meta_key,
			]
		);
	}