wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



rest_url › WordPress Filter Hooks

Da4.4.0
Deprecaton/a
apply_filters( 'rest_url', $url, $path, $blog_id, $scheme )
Parametri: (4)
  • (string) $url REST URL.
    Richiesto:
  • (string) $path REST route.
    Richiesto:
  • (int|null) $blog_id Blog ID.
    Richiesto:
  • (string) $scheme Sanitization scheme.
    Richiesto:
Definito a:
Codex:

Filters the REST URL.

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





Sorgenti

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