Description
Filters the enveloped form of a REST API response. }
Occurrences
Filename | Line Number |
---|---|
wp-includes/rest-api/class-wp-rest-server.php | 819 |
Parameters
Type | Name | Description |
---|---|---|
array | $envelope | { Envelope data. |
WP_REST_Response | $response | Original response data. |
PHP Doc
/**
* Filters the enveloped form of a REST API response.
*
* @since 4.4.0
*
* @param array $envelope {
* Envelope data.
*
* @type array $body Response data.
* @type int $status The 3-digit HTTP status code.
* @type array $headers Map of header name to header value.
* }
* @param WP_REST_Response $response Original response data.
*/