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



rest_pre_serve_request › WordPress Filter Hooks

Da4.4.0
Deprecaton/a
› apply_filters( 'rest_pre_serve_request', false, $result, $request, $this )
Parametri: (4)
  • () served Whether the request has already been served. Default false.
    Richiesto: Sì
  • () result Result to send to the client. Usually a `WP_REST_Response`.
    Richiesto: Sì
  • () request Request used to generate the response.
    Richiesto: Sì
  • () server Server instance.
    Richiesto: Sì
Definito a:
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.




Sorgenti

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