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:

Description

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

Related Functions

esc_url, get_rest_url, site_url, wp_reset_query, content_url

Top Google Results

User discussions

wpseek mobile