WC_CSV_Batch_Exporter::export()
Serve the file and remove once sent to the client.
Description Description
Source Source
File: includes/export/abstract-wc-csv-batch-exporter.php
public function export() {
$this->send_headers();
$this->send_content( $this->get_file() );
@unlink( $this->get_file_path() ); // phpcs:ignore WordPress.VIP.FileSystemWritesDisallow.file_ops_unlink, Generic.PHP.NoSilencedErrors.Discouraged
die();
}
Changelog Changelog
| Version | Description |
|---|---|
| 3.1.0 | Introduced. |