Hooks::filter_shortcode_view_context( Tribe__Context $view_context, string $view_slug, TribeEventsViewsV2View $instance )
Alters the context of the view based on the shortcode params stored in the database based on the ID.
Contents
Parameters
- $view_context
-
(Tribe__Context) (Required) Context for this request.
- $view_slug
-
(string) (Required) Slug of the view we are building.
- $instance
-
(TribeEventsViewsV2View) (Required) Which view instance we are dealing with.
Return
(Tribe__Context) Altered version of the context ready for shortcodes.
Source
File: src/Tribe/Views/V2/Hooks.php
public function filter_shortcode_view_context( $view_context, $view_slug, $instance ) {
return $this->container->make( Shortcodes\Tribe_Events::class )
->filter_view_context( $view_context, $view_slug, $instance );
}
Changelog
| Version | Description |
|---|---|
| 5.0.0 | Introduced. |