Un motore di ricerca WordPress per sviluppatori e autori di temi



rest_pre_serve_request ›

Da4.4.0
Deprecaton/a
apply_filters( 'rest_pre_serve_request', false, $result, $request, $this )
Parametri: (4)
  • (bool) $served Whether the request has already been served. Default false.
    Richiesto:
  • (WP_HTTP_Response) $result Result to send to the client. Usually a WP_REST_Response.
    Richiesto:
  • (WP_REST_Request) $request Request used to generate the response.
    Richiesto:
  • (WP_REST_Server) $this Server instance.
    Richiesto:
Definito a:
Codex:

Filters whether the request has already been served.

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





Sorgenti

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