WordPress at a glance
filter is not described

rest_envelope_response filter-hook . WP 4.4.0

Filters the enveloped form of a response.

Usage

add_filter( 'rest_envelope_response', 'filter_function_name_2677', 10, 2 );
function filter_function_name_2677( $envelope, $response ){
	// filter...

	return $envelope;
}
$envelope(array)
Envelope data.
$response(WP_REST_Response)
Original response data.

Where the hook is called

WP_REST_Server::envelope_response()
wp-includes/rest-api/class-wp-rest-server.php 634
$envelope = apply_filters( 'rest_envelope_response', $envelope, $response );

Where the hook is used (in WP core)

Does not used.