View::filter_query_args( array $query_args, bool $canonical )
Filters URL query args with a predictable filter
Contents
Parameters
- $query_args
-
(array) (Required) An array of query args that will be used to build the URL for the View.
- $canonical
-
(bool) (Required) Whether the URL should be the canonical one or not.
Return
(array) Filtered array of query arguments.
Source
File: src/Tribe/Views/V2/View.php
public function filter_query_args( $query_args, $canonical ) {
/**
* Filters the query arguments that will be used to build a View URL.
*
* @since 4.9.10
*
* @param array $query_args An array of query args that will be used to build the URL for the View.
* @param View_Interface $this This View instance.
* @param bool $canonical Whether the URL should be the canonical one or not.
*/
$query_args = apply_filters( 'tribe_events_views_v2_url_query_args', $query_args, $this, $canonical );
return $query_args;
}
Changelog
| Version | Description |
|---|---|
| 5.0.0 | Introduced. |