rest_url() – Retrieves the URL to a REST endpoint.
You appear to be a bot. Output may be restricted
Description
Retrieves the URL to a REST endpoint.
Note: The returned URL is NOT escaped.
Usage
$string = rest_url( $path, $scheme );
Parameters
- $path
- ( string ) optional – Optional. REST route. Default empty.
- $scheme
- ( string ) optional default: rest – Optional. Sanitization scheme. Default 'rest'.
Returns
string Full URL to the endpoint.
Source
File name: wordpress/wp-includes/rest-api.php
Lines:
1 to 3 of 3
function rest_url( $path = '', $scheme = 'rest' ) { return get_rest_url( null, $path, $scheme ); }