Filter: gk/gravityview/view-collection/from-post/views
Filters the View Collection processed from a WP_Post object.
This allows code to add Views to the Collection that are not found by the default logic, or modify the View Collection before it is returned. The GravityView Elementor Widget uses this filter to add Views to the Collection that are embedded in Elementor widgets. This allows the widget support ?gvid being properly handled when multiple Views are embedded in the same post.
Parameters
| Name | Type | Description |
|---|---|---|
| $view_collection | \GV\View_Collection | The View Collection. |
| $post | \WP_Post | The post. |
Since
Source
Defined in future/includes/class-gv-collection-view.php at line 141
Returns
The filtered View Collection.