Filters the REST API response.
Allows modification of the response data after inserting embedded data (if any) and before echoing the response data.
$resultarray
$serverWP_REST_Server
$requestWP_REST_Request
$result = apply_filters( 'rest_pre_echo_response', $result, $this, $request );
| Version | Description |
|---|---|
| 4.8.1 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_pre_echo_response