Rewrite::filter_rewrite_query_vars_map( TribeEventsProViewsV2array $query_vars_map = array() )
Filters the query vars map used by the Rewrite component to parse plain links into permalinks to add the elements needed to support PRO components.
Contents
Parameters
- $query_vars_map
-
(<span class="TribeEventsProViewsV2array">TribeEventsProViewsV2array) (Optional) The query variables map, as produced by The Events Calendar code. Shape is `[ <pattern> => <query_var> ].
Default value: array()
Return
(TribeEventsProViewsV2array<string,string>) The query var map, filtered to add the query vars handled by PRO.
Source
File: src/Tribe/Views/V2/Rewrite.php
public function filter_rewrite_query_vars_map( array $query_vars_map = [] ) { $query_vars_map['venue'] = Venue::POSTTYPE; $query_vars_map['organizer'] = Organizer::POSTTYPE; return $query_vars_map; }
Changelog
Version | Description |
---|---|
5.0.1 | Introduced. |