Filters the JSON encoding options used to send the REST API response.
$optionsint$requestWP_REST_Requestwp-includes/rest-api/class-wp-rest-server.php:266WP_REST_Server::get_json_encode_options() * * @since 6.1.0 * * @param int $options JSON encoding options {@see json_encode()}. * @param WP_REST_Request $request Current request object. */ return apply_filters( 'rest_json_encode_options', $options, $request ); } /** * Handles serving a REST API request. * * Matches the current server URI to a route and runs the first matchingIntroduced in 6.1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.