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.
Return Return
(void)
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; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.30.3 | Introduced. |