tribe_tickets_rest_url( string $path = '/', string $scheme = 'rest', int $blog_id = null )

Retrieves the URL to a TEC REST endpoint on a site.

Note: The returned URL is NOT escaped.


Parameters #

$path

(string) (Optional) TEC REST route.

Default value: '/'

$scheme

(string) (Optional) Sanitization scheme.

Default value: 'rest'

$blog_id

(int) (Optional) Blog ID. Default of null returns URL for current blog.

Default value: null


Top ↑

Return #

(string) Full URL to the endpoint.


Top ↑

Source #

File: src/functions/advanced-functions/rest-v1.php

	function tribe_tickets_rest_url( $path = '/', $scheme = 'rest', $blog_id = null ) {
		return tribe( 'tickets.rest-v1.main' )->get_url( $path, $scheme, $blog_id );
	}

Top ↑

Changelog #

Changelog
Version Description
4.7.5 Introduced.