Un motore di ricerca WordPress per sviluppatori e autori di temi



rest_post_dispatch ›

Da4.5.0
Deprecaton/a
apply_filters( 'rest_post_dispatch', rest_ensure_response( $result )
Parametri: (3)
  • (WP_HTTP_Response) $result Result to send to the client. Usually a WP_REST_Response.
    Richiesto:
  • (WP_REST_Server) $this Server instance.
    Richiesto:
  • (WP_REST_Request) $request Request used to generate the response.
    Richiesto:
Definito a:
Codex:

Filters the API response.

Allows modification of the response before returning.





Sorgenti

$result = apply_filters( 'rest_post_dispatch', rest_ensure_response( $result ), $this, $request );