rest_url
rest_url ( $path = '', $scheme = 'rest' )
Parameters:- (string) path Optional. REST route. Default empty.
- (string) scheme Optional. Sanitization scheme. Default 'rest'.
Returns:- (string) Full URL to the endpoint.
Defined at: - Introduced in WordPress: 4.4.0
- Deprecated in WordPress: —
Description
Retrieves the URL to a REST endpoint.Note: The returned URL is NOT escaped.