rest_url


rest_url ( $path = '', $scheme = 'json' )

Parameters:
  • (string) $path Optional. REST route. Default empty.
  • (string) $scheme Optional. Sanitization scheme. Default 'json'.
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

get_rest_url, esc_url, site_url, wp_reset_query, esc_url_raw

Top Google Results

User discussions

wpseek mobile