Uma área de pesquisa sobre o WordPress para devs e autores do tema



rest_url ›

Desde4.4.0
Obsoleton/a
apply_filters( 'rest_url', $url, $path, $blog_id, $scheme )
Parâmetros: (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
Definido em:
Codex:

Filters the REST URL.

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





Fonte

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