WC_CSV_Batch_Exporter::export()publicWC 3.1.0

Serve the file and remove once sent to the client.

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

Хуков нет.

Возвращает

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

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

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

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

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

Код WC_CSV_Batch_Exporter::export() WC 8.7.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();
}