Hooks::filter_view_data( TribeEventsProViewsV2array $data, string $slug, TribeEventsViewsV2View_Interface $view )

Filters the View data attributes to add some related to PRO features.


Parameters

$data

(<span class="TribeEventsProViewsV2array">TribeEventsProViewsV2array) (Required) The current View data attributes.

$slug

(string) (Required) The View registered slug.

$view

(TribeEventsViewsV2View_Interface) (Required) The View currently rendering.


Top ↑

Return

(TribeEventsProViewsV2array<string,string>) The filtered View data attributes.


Top ↑

Source

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

	public function filter_view_data( $data, $slug, $view ) {
		$data = $this->container->make( Shortcodes\Tribe_Events::class )
		                        ->filter_view_data( $data, $slug, $view );

		return $data;
	}

Top ↑

Changelog

Changelog
Version Description
5.0.0 Introduced.