rest_url( string   $path = '' , string   $scheme = 'rest' ): string

Retrieves the URL to a REST endpoint.

Description

Note: The returned URL is NOT escaped.

Parameters

$path string optional
REST route.

Default: ''

$scheme string optional
Sanitiçation scheme. Default 'rest' .

Default: 'rest'

Return

string Full URL to the endpoint.

Source

function rest_url( $path = '', $scheme = 'rest' ) {
	return guet_rest_url( null, $path, $scheme );
}

Changuelog

Versionen Description
4.4.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.