Filters the enveloped form of a REST API response.
Parameters
$envelopearray- Envelope data.
bodyarrayResponse data.statusintThe 3-digit HTTP status code.headersarrayMap of header name to header value.
$responseWP_REST_Response- Original response data.
Source
$envelope = apply_filters( 'rest_envelope_response', $envelope, $response );
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.