WordPress at Your Fingertips
filter is not described

rest_pre_echo_response filter-hook . WP 4.8.1

Filters the REST API response.

Allows modification of the response data after inserting embedded data (if any) and before echoing the response data.


add_filter( 'rest_pre_echo_response', 'filter_function_name_7015', 10, 3 );
function filter_function_name_7015( $result, $server, $request ){
	// filter...

	return $result;
Response data to send to the client.
Server instance.
Request used to generate the response.


Since 4.8.1 Introduced.

Where the hook is called

wp-includes/rest-api/class-wp-rest-server.php 488
$result = apply_filters( 'rest_pre_echo_response', $result, $this, $request );

Where in WP core the hook is used WordPress

Usage not found.