WC_CSV_Batch_Exporter::generate_file()
Generate the CSV file.
Description Description
Source Source
File: includes/export/abstract-wc-csv-batch-exporter.php
public function generate_file() { if ( 1 === $this->get_page() ) { @unlink( $this->get_file_path() ); // phpcs:ignore WordPress.VIP.FileSystemWritesDisallow.file_ops_unlink, Generic.PHP.NoSilencedErrors.Discouraged, } $this->prepare_data_to_export(); $this->write_csv_data( $this->get_csv_data() ); }
Changelog Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |