title: Wordpress : Allow zip files in media to upload
body: <p>I need to upload .zip file to media.</p>
  
  <p>Here I tried</p>
  
  <p><a href="https://wordpress.stackexchange.com/questions/57603/is-it-possible-to-allow-zip-files-to-be-uploaded-in-wordpress">https://wordpress.stackexchange.com/questions/57603/is-it-possible-to-allow-zip-files-to-be-uploaded-in-wordpress</a></p>
  
  <pre><code>add_filter('upload_mimes', 'custom_upload_mimes');
  function custom_upload_mimes ( $existing_mimes=array() ) {
      // add your extension to the mimes array as below
      $existing_mimes['zip'] = 'application/zip';
      $existing_mimes['gz'] = 'application/x-gzip';
      return $existing_mimes;
  }
  </code></pre>
  
  <p>But it is not working in Wordpress 5+ or gutenburg editor</p>