Filters the JSON encoding options used to send the REST API response.
Parameters
$options
int- JSON encoding options json_encode().
$request
WP_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.