Hi! I am trying to add a mime type in the regular way.
But this fails for some reason. If I switch off MLA the add is executed correctly.
Looking at the hook upload_mimes its active filters are:
>>>>> upload_mimes
10 check_upload_mimes wpuxss_eml_upload_mimes remark_add_mime_types
2147483647 MLAMime::mla_upload_mimes_filter (2)
As I am adding svg and MLA also does something with that I also tried adding a funny mime type to no avail.
My code:
// Add mime types
function remark_add_mime_types($mimes) { $mimes['svg'] = 'image/svg+xml'; $mimes['harm'] = 'text/plain'; retu $mimes;
}
add_filter('upload_mimes', 'remark_add_mime_types');