Query::filter_view_query_args( array $query_args, TribeEventsViewsV2View_Interface $view )
Filters the View URL query arguments to add the ones handled by Virtual Events.
Contents
Parameters
- $query_args
-
(array) (Required) The current View URL query arguments.
- $view
-
(TribeEventsViewsV2View_Interface) (Required) The View whose URL arguments are being filtered.
Return
(array) The filtered View URL query arguments.
Source
File: src/Tribe/Views/V2/Query.php
public function filter_view_query_args( array $query_args, View_Interface $view ) {
$context = $view->get_context();
if ( $context->is( 'virtual' ) ) {
$query_args['virtual'] = true;
}
return $query_args;
}
Changelog
| Version | Description |
|---|---|
| 1.0.1 | Introduced. |