apply_filters( 'rest_envelope_response', array $envelope , WP_REST_Response $response )
Filters the enveloped form of a REST API response.
Parameters
- $envelope
-
Envelope data.<br>
- 'body'
(array) Response data.<br> - 'status'
(int) The 3-digit HTTP status code.<br> - 'headers'
(array) Map of header name to header value.<br>
- 'body'
- $response
-
Original response data.
Source
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |