apply_filters( 'rest_json_encode_options', int $options, WP_REST_Request $request )

Filters the JSON encoding options used to send the REST API response.


Parameters

$options

JSON encoding options json_encode().

$request

Current request object.


Source

File: wp-includes/rest-api/class-wp-rest-server.php

View on GitHub


Changelog

Changelog
Version Description
6.1.0 Introduced.