W3cubDocs

/WordPress

apply_filters( 'rest_envelope_response', array $envelope, WP_REST_Response $response )

Filters the enveloped form of a response.

Parameters

$envelope

(array) Envelope data.

$response

(WP_REST_Response) Original response data.

Source

File: wp-includes/rest-api/class-wp-rest-server.php

View on Trac

Changelog

Version Description
4.4.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_envelope_response