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 int
JSON encoding options json_encode().
$request WP_REST_Request
Current request object.

Top ↑

Source

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

return apply_filters( 'rest_json_encode_options', $options, $request );


Top ↑

Changelog

Changelog
Version Description
6.1.0 Introduced.

Top ↑

User Contributed Notes

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