Filters the JSON encoding options used to send the REST API response.
Parameters
$optionsint- JSON encoding options json_encode().
$requestWP_REST_Request- Current request object.
Source
return apply_filters( 'rest_json_encode_options', $options, $request );
Changelog
| Version | Description |
|---|---|
| 6.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.