wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



rest_pre_serve_request › WordPress Filter Hooks

Seit4.4.0
Veraltetn/v
apply_filters( 'rest_pre_serve_request', false, $result, $request, $this )
Parameter: (4)
  • () served Whether the request has already been served. Default false.
    Erforderlich: Ja
  • () result Result to send to the client. Usually a `WP_REST_Response`.
    Erforderlich: Ja
  • () request Request used to generate the response.
    Erforderlich: Ja
  • () server Server instance.
    Erforderlich: Ja
Definiert in:
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.




Quellcode

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