Hooks::filter_events_views_v2_view_template_vars( array $template_vars, TribeEventsViewsV2View_Interface $view )

Filters the View template variables before the HTML is generated to add the ones related to this plugin filters.


Parameters

$template_vars

(array) (Required) The View template variables.

$view

(TribeEventsViewsV2View_Interface) (Required) The current View instance.


Top ↑

Source

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

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

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

Top ↑

Changelog

Changelog
Version Description
4.7.5 Introduced.