Tribe__Events__Repositories__Linked_Posts::__construct()

Tribe__Events__Repositories__Linked_Posts constructor.

Contents

Sets up the repository default parameters and schema.


Source

File: src/Tribe/Repositories/Linked_Posts.php

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

		$this->default_args = array(
			'post_type'                    => Tribe__Events__Venue::POSTTYPE,
			// We'll be handling the dates, let's mark the query as a non-filtered one.
			'tribe_suppress_query_filters' => true,
		);

		$this->schema = array_merge( $this->schema, array(
			'event' => array( $this, 'filter_by_event' ),
		) );
	}

Top ↑

Changelog

Changelog
Version Description
4.9 Introduced.