Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
MIME type for importing the XML file with text/xml it does not import due to application/xml due to real MIME type validation in WordPress v5.0.1
$overrides = array(
'mimes' => array(
'xml' => 'text/xml', // Download XML file.
wp_handle_sideload( $file_args, $overrides );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment