Core Function
View Source on Trac ↗ wp_is_xml_request()
wp_is_xml_request( ) Checks whether current request is an XML request, or is expecting an XML response.
Return Value
(bool)
bool True if `Accepts` or `Content-Type` headers contain `text/xml`
or one of the related MIME types. False otherwise.
Function Information
Since Version
5.2.0
Source File
wp-includes/load.php
Advertisement