Hooks::filter_view_url_query_args( TribeEventsFilterbarViewsV2_1array $query_args, TribeEventsViewsV2View_Interface $view )

Filters the query arguments Views will use to build their own URL.

Using the context we’ll know what filter are applied and what keys and values to add to the query args.


Parameters

$query_args

(<span class="TribeEventsFilterbarViewsV2_1array">TribeEventsFilterbarViewsV2_1array) (Required) The current URL query arguments.

$view

(TribeEventsViewsV2View_Interface) (Required) The instance of the View the URL is being built for.


Top ↑

Return

(TribeEventsFilterbarViewsV2_1array<string,mixed>) The filtered array of URL query arguments.


Top ↑

Source

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

	public function filter_view_url_query_args( array $query_args, View_Interface $view ) {
		return $this->container->make( Url::class )->filter_view_query_args( $query_args, $view );
	}

Top ↑

Changelog

Changelog
Version Description
5.0.0 Introduced.