Automattic\WooCommerce\Admin

ReportCSVExporter::export │ public │ WC 11.2.0

Serve the export file.

Unlike the parent, this keeps the file so that the download link WooCommerce emails to the merchant works more than once. ReportExporter::delete_expired_exports() removes it later.

Method of the class: ReportCSVExporter{}

No Hooks.

Returns

void. Nothing (null).

Usage

$ReportCSVExporter = new ReportCSVExporter();
$ReportCSVExporter->export();

Changelog

Since 11.2.0 Introduced.

ReportCSVExporter::export() code WC 11.3.0

public function export() {
	$this->send_headers();
	$this->stream_export_file();
	die();
}