Tribe_Events::filter_view_url( string $url, bool $canonical, TribeEventsViewsV2View_Interface $view )
Filters the View URL to add the shortcode query arg, if required.
Contents
Parameters
- $url
-
(string) (Required) The View current URL.
- $canonical
-
(bool) (Required) Whether to return the canonical version of the URL or the normal one.
- $view
-
(TribeEventsViewsV2View_Interface) (Required) This view instance.
Return
(string) The URL for the view shortcode.
Source
File: src/Tribe/Views/V2/Shortcodes/Tribe_Events.php
public function filter_view_url( $url, $canonical, $view ) {
// Dont touch the URL in case we are not managing it.
if ( ! $this->should_manage_url() ) {
return $url;
}
return $url;
}
Changelog
| Version | Description |
|---|---|
| 5.5.0 | Moved this from deprecated ShortcodesManager. |
| 4.7.9 | Introduced. |