Tribe_Events::filter_view_url( string $url, bool $canonical, TribeEventsViewsV2View_Interface $view )

Filters the View URL to add the shortcode query arg, if required.


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.


Top ↑

Return

(string) The URL for the view shortcode.


Top ↑

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;
	}

Top ↑

Changelog

Changelog
Version Description
5.5.0 Moved this from deprecated ShortcodesManager.
4.7.9 Introduced.