apply_filters( 'rest_post_dispatch', WP_HTTP_Response $result , WP_REST_Server $this , WP_REST_Request $request )
Filters the API response.
Description
Allows modification of the response before returning.
Parameters
- $result
-
Result to send to the client. Usually a WP_REST_Response.
- $this
-
Server instance.
- $request
-
Request used to generate the response.
Source
Changelog
Version | Description |
---|---|
WP-4.5.0 | Applied to embedded responses. |
WP-4.4.0 | Introduced. |