Filters the enveloped form of a REST API response.
$envelopearray
body arraystatus intheaders array$responseWP_REST_Response
$envelope = apply_filters( 'rest_envelope_response', $envelope, $response );
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_envelope_response