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

Serve the CSV as an attachment to be downloaded.

Parameters Parameters


(string) (Required) CSV content string.


(string) (Required) Filename.

Top ↑

Return Return


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;

Top ↑

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.