Settings::filter_url( string $url )

When TEC is activated, the Events top level menu item in the dashboard needs the post_type appended to it


Parameters

$url

(string) (Required) Settings URL to filter


Top ↑

Return

(string)


Top ↑

Source

File: src/Tribe/Admin/Settings.php

	public function filter_url( $url ): string {
		if ( is_network_admin() ) {
			return $url;
		}

		return add_query_arg( [ 'post_type' => Plugin::POSTTYPE ], $url );
	}

Top ↑

Changelog

Changelog
Version Description
6.0.5 Moved to Settings class.
4.3.5 Introduced.