Description
Filters the JSON encoding options used to send the REST API response.
Occurrences
Filename | Line Number |
---|---|
wp-includes/rest-api/class-wp-rest-server.php | 266 |
Parameters
Type | Name | Description |
---|---|---|
int | $options | JSON encoding options {@see json_encode()}. |
WP_REST_Request | $request | Current request object. |
PHP Doc
/**
* Filters the JSON encoding options used to send the REST API response.
*
* @since 6.1.0
*
* @param int $options JSON encoding options {@see json_encode()}.
* @param WP_REST_Request $request Current request object.
*/