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



rest_exposed_cors_headers › Filtr WordPress Hooks

Od6.3.0
Przestarzałyn/a
› apply_filters( 'rest_exposed_cors_headers', $expose_headers, $request )
Parametry: (2)
  • () expose_headers The list of response headers to expose.
    Wymagane: Tak
  • () request The request in context.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the list of response headers that are exposed to REST API CORS requests.





Źródło

$expose_headers = apply_filters( 'rest_exposed_cors_headers', $expose_headers, $request );