apply_filters( 'rest_pre_echo_response', array $result, WP_REST_Server $this, WP_REST_Request $request )

Filters the API response.


Description Description

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


Parameters Parameters

$result

(array) Response data to send to the client.

$this

(WP_REST_Server) Server instance.

$request

(WP_REST_Request) Request used to generate the response.


Top ↑

Source Source

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

View on Trac


Top ↑

Changelog Changelog

Changelog
Version Description
4.8.1 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.