Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Modify wordpress allowed mime types
<?php
add_filter('upload_mimes','external_mimes');
function external_mimes($mimes){
return array_merge($mimes,array (
'rar'=> 'application/x-rar-compressed', // you can add more?
));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment