apply_filters( ‘rest_json_encode_options’, int $options, WP_REST_Request $request )

In this article

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

VersionDescription
6.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.