Hooks::filter_map_canonical_query_args( array $map, string $url,  $rewrite )

Include the The Events calendar mapping for query args, into to canonical url.


Parameters

$map

(array) (Required) Associative array following the format: [ 'eventDate' => [ 'event-date', 'event_date', 'tribe-bar-date' ], ].

$url

(string) (Required) The input URL to resolve to a canonical one.

$this

(TribeEventsViewsV2Tribe__Rewrite) (Required) This rewrite object.


Top ↑

Return

(array)


Top ↑

Source

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

	public function filter_map_canonical_query_args( $map, $url, $rewrite ) {
		$map['eventDate'] = [ 'event-date', 'event_date', 'tribe-bar-date' ];
		return $map;
	}

Top ↑

Changelog

Changelog
Version Description
4.9.5 Introduced.