Filters the JSON encoding options used to send the REST API response.
$optionsint
$requestWP_REST_Request
return apply_filters( 'rest_json_encode_options', $options, $request );
| Version | Description |
|---|---|
| 6.1.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_json_encode_options