LLMS_Meta_Box_Voucher_Export::download_csv( string $csv, string $name )

Serve the CSV as an attachment to be downloaded.


Parameters Parameters

$csv

(string) (Required) CSV content string.

$name

(string) (Required) Filename.


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/admin/post-types/meta-boxes/class.llms.meta.box.voucher.export.php

	public static function download_csv( $csv, $name ) {

		header( 'Content-Type: application/csv' );
		header( 'Content-Disposition: attachment; filename="' . $name . '";' );

		echo $csv;
		exit;
	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.30.3 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.