Closed nunofmendes closed 7 years ago
Hi,
I know this is to mainly use JSON as a response, but is there a way to modify the response so it is XML?
One of my requests, has to be responded in XML.
Thanks in advance!
There is, although it's not encouraged too much. WordPress core itself does this for oEmbed responses with the _oembed_rest_pre_serve_request() function.
_oembed_rest_pre_serve_request()
Hi,
I know this is to mainly use JSON as a response, but is there a way to modify the response so it is XML?
One of my requests, has to be responded in XML.
Thanks in advance!