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



rest_pre_serve_request › Filtr WordPress Hooks

Od4.4.0
Przestarzałyn/a
› apply_filters( 'rest_pre_serve_request', false, $result, $request, $this )
Parametry: (4)
  • () served Whether the request has already been served. Default false.
    Wymagane: Tak
  • () result Result to send to the client. Usually a `WP_REST_Response`.
    Wymagane: Tak
  • () request Request used to generate the response.
    Wymagane: Tak
  • () server Server instance.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters whether the REST API request has already been served.

Allow sending the request manually - by returning true, the API result will not be sent to the client.




Źródło

$served = apply_filters( 'rest_pre_serve_request', false, $result, $request, $this );