wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



rest_url › Filtr WordPress Hooks

Od4.4.0
Przestarzałyn/a
apply_filters( 'rest_url', $url, $path, $blog_id, $scheme )
Parametry: (4)
  • (string) $url REST URL.
    Wymagane: Tak
  • (string) $path REST route.
    Wymagane: Tak
  • (int|null) $blog_id Blog ID.
    Wymagane: Tak
  • (string) $scheme Sanitization scheme.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the REST URL.

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





Źródło

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