Created
May 19, 2017 17:33
-
-
Save uptimizt/44e4cf680fa0f69f385087c966f354ee to your computer and use it in GitHub Desktop.
Allow zip and gzip files (mime type) for WordPress
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
<?php | |
function wpcraft_zip_gzip_mime_types ( $mimes ) { | |
$existing_mimes['zip'] = 'application/zip'; | |
$existing_mimes['gz'] = 'application/x-gzip'; | |
return $mimes; | |
} | |
add_filter('upload_mimes', 'wpcraft_zip_gzip_mime_types'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment