Tribe__Tickets__Event_Repository::__construct()

Tribe__Tickets__Event_Repository constructor.

Contents

Gets the current event repository instance to add or replace some filters in it.


Source

File: src/Tribe/Event_Repository.php

	public function __construct() {
		$this->decorated = tribe( 'events.event-repository' );
		$this->decorated->add_schema_entry( 'cost', array( $this, 'filter_by_cost' ) );
		$this->decorated->add_schema_entry( 'cost_currency_symbol', array( $this, 'filter_by_cost_currency_symbol' ) );
		$this->decorated->add_schema_entry( 'has_tickets', array( $this, 'filter_by_has_tickets' ) );
		$this->decorated->add_schema_entry( 'has_rsvp', array( $this, 'filter_by_has_rsvp' ) );
	}

Top ↑

Changelog

Changelog
Version Description
4.10.4 Introduced.