A WordPress-centric search engine for devs and theme authors



rest_url ›

Since4.4.0
Deprecatedn/a
apply_filters( 'rest_url', $url, $path, $blog_id, $scheme )
Parameters: (4)
  • (string) $url REST URL.
    Required: Yes
  • (string) $path REST route.
    Required: Yes
  • (int) $blog_id Blog ID.
    Required: Yes
  • (string) $scheme Sanitization scheme.
    Required: Yes
Defined at:
Codex:

Filters the REST URL.

Use this filter to adjust the url returned by the get_rest_url() function.





Source

return apply_filters( 'rest_url', $url, $path, $blog_id, $scheme );