get_rest_url


get_rest_url ( $blog_id = null, $path = '/', $scheme = 'rest' )

Parameters:
  • (int|null) blog_id Optional. Blog ID. Default of null returns URL for current blog.
  • (string) path Optional. REST route. Default '/'.
  • (string) scheme Optional. Sanitization scheme. Default 'rest'.
Returns:
  • (string) Full URL to the endpoint.
Defined at:

Description

Retrieves the URL to a REST endpoint on a site.Note: The returned URL is NOT escaped.

Related Functions

get_site_url, rest_url, get_home_url, get_sitemap_url, get_avatar_url

Top Google Results

User discussions

wpseek mobile