Hooks::filter_view_data( TribeEventsProViewsV2array $data, string $slug, TribeEventsViewsV2View_Interface $view )
Filters the View data attributes to add some related to PRO features.
Contents
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.
Return
(TribeEventsProViewsV2array<string,string>) The filtered View data attributes.
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;
}
Changelog
| Version | Description |
|---|---|
| 5.0.0 | Introduced. |