Created
September 16, 2019 13:21
-
-
Save termitkin/32d842a087744a034f72aa2ba16e6df9 to your computer and use it in GitHub Desktop.
[WordPress] Allow to upload .rar files
This file contains 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
function allow_upload_rar ($mime_types = array()) { | |
$mime_types['rar'] = 'application/x-rar'; | |
return $mime_types; | |
} | |
add_filter('upload_mimes', 'allow_upload_rar'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment