Last active
December 20, 2015 04:19
-
-
Save mustafauysal/6070128 to your computer and use it in GitHub Desktop.
Modify wordpress allowed mime types
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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