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



rest_url › Hooks de Filtros WordPress

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|null) $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 );