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_8787', 10, 2 );
function filter_function_name_8787( $envelope, $response ){
	// filter...

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

Changelog

Since 4.4.0 Introduced.

Where the hook is called

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

Where the hook is used (in WP core)

Usage not found!