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.

Метод класса: ReportCSVExporter{}

Хуков нет.

Возвращает

void. Ничего (null).

Использование

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

Список изменений

С версии 11.2.0 Введена.

Код ReportCSVExporter::export() WC 11.3.0

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