Private AccessPrivate Access
This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Hooks into the REST API output to print XML instead of JSON.
This is only done for the oEmbed API endpoint, which supports both formats.
(bool) (Required) Whether the request has already been served.
(WP_HTTP_ResponseInterface) (Required) Result to send to the client. Usually a WP_REST_Response.
(WP_REST_Request) (Required) Request used to generate the response.
(WP_REST_Server) (Required) Server instance.