WordPress at Your Fingertips
function is not described

WC_CSV_Batch_Exporter::export() public WC 3.1.0

Serve the file and remove once sent to the client.

{} It's a method of the class: WC_CSV_Batch_Exporter{}

No Hooks.

Return

null. Nothing.

Usage

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

Changelog

Since 3.1.0 Introduced.

Code of WC_CSV_Batch_Exporter::export() WC 5.9.0

public function export() {
	$this->send_headers();
	$this->send_content( $this->get_headers_row_file() . $this->get_file() );
	@unlink( $this->get_file_path() ); // phpcs:ignore WordPress.VIP.FileSystemWritesDisallow.file_ops_unlink, Generic.PHP.NoSilencedErrors.Discouraged
	@unlink( $this->get_headers_row_file_path() ); // phpcs:ignore WordPress.VIP.FileSystemWritesDisallow.file_ops_unlink, Generic.PHP.NoSilencedErrors.Discouraged
	die();
}