Hooks::filter_query_vars( array $query_vars = array() )

Filters the publicly available query variables to add the ones supported by Views v2.

To keep back-compatibility with v1 we’re registering the same query vars making this method a copy of the original Tribe__Events__Main::eventQueryVars one.


Parameters

$query_vars

(array) (Optional) The list of publicly available query variables.

Default value: array()


Top ↑

Return

(array) The filtered list of publicly available query variables.


Top ↑

Source

File: src/Tribe/Views/V2/Hooks.php

	public function filter_query_vars( array $query_vars = [] ) {
		$query_vars[] = 'eventDisplay';
		$query_vars[] = 'eventDate';
		$query_vars[] = 'eventSequence';
		$query_vars[] = 'ical';
		$query_vars[] = 'start_date';
		$query_vars[] = 'end_date';
		$query_vars[] = 'featured';
		$query_vars[] = TEC::TAXONOMY;
		$query_vars[] = 'tribe_remove_date_filters';

		return $this->container->make( Kitchen_Sink::class )->filter_register_query_vars( $query_vars );
	}

Top ↑

Changelog

Changelog
Version Description
4.9.2 Introduced.