wp_is_xml_request
wp_is_xml_request ( No parameters )
Returns:- (bool) True if `Accepts` or `Content-Type` headers contain `text/xml` or one of the related MIME types. False otherwise.
Defined at: - Introduced in WordPress: 5.2.0
- Deprecated in WordPress: —
Description
Checks whether current request is an XML request, or is expecting an XML response.