Snippets

Visser Labs Override the default ZipArchive Class in PHPExcel for XLS and XLSX exports

Created by Michael Visser

File functions.php Added

  • Ignore whitespace
  • Hide word diff
+<?php
+// Override the default ZipArchive Class that is loaded in PHPExcel and default to the PCLZip Class
+function custom_woo_ce_export_phpexcel_ziparchive_legacy() {
+
+	return true;
+
+}
+add_filter( 'woo_ce_export_phpexcel_ziparchive_legacy', 'custom_woo_ce_export_phpexcel_ziparchive_legacy' );
+?>