apply_filters( 'rest_envelope_response', array $envelope , WP_REST_Response $response )
Filters the enveloped form of a REST API response.
Parameters
-
$envelope
array -
Envelope data.
body
arrayResponse data.status
intThe 3-digit HTTP status code.headers
arrayMap of header name to header value.
-
$response
WP_REST_Response -
Original response data.
Source
File: wp-includes/rest-api/class-wp-rest-server.php
.
View all references
$envelope = apply_filters( 'rest_envelope_response', $envelope, $response );
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |