SHARE
TWEET

Untitled

a guest May 19th, 2017 42 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. function wpcraft_zip_gzip_mime_types ( $mimes ) {
  4.     $existing_mimes['zip'] = 'application/zip';
  5.     $existing_mimes['gz'] = 'application/x-gzip';
  6.     return $mimes;
  7. }
  8. add_filter('upload_mimes', 'wpcraft_zip_gzip_mime_types');
  9.  
  10. ?>
RAW Paste Data
Top