Hooks::filter_events_views_v2_1_view_template_vars( TribeEventsFilterbarViewsV2_1array $template_vars, TribeEventsViewsV2View_Interface $view )

Filter the Template Vars for Filterbar V2_1 Views.


Parameters #

$template_vars

(<span class="TribeEventsFilterbarViewsV2_1array">TribeEventsFilterbarViewsV2_1array) (Required) The View template variables.

$view

(TribeEventsViewsV2View_Interface) (Required) The current View instance.


Top ↑

Source #

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

	public function filter_events_views_v2_1_view_template_vars( array $template_vars, View_Interface $view ) {
		/** @var Filters $view_filters */
		$view_filters = $this->container->make( Filters::class );

		return $view_filters->filter_template_vars( $template_vars, $view->get_context() );
	}

Top ↑

Changelog #

Changelog
Version Description
5.0.0 Introduced.