public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/admin/functions.php
/**
 * Sends the HTTP headers for CSV content that forces a download.
 *
 * @since 1.0.0
 *
 * @param string $filenameToUse The filename to use.
 */
Sends the HTTP headers for CSV content that forces a download.

@param string $filenameToUse The filename to use.
Sends the HTTP headers for CSV content that forces a download . @param string $filenameToUse The filename to use .
function WPCW_data_export_sendHeaders_CSV( $filenameToUse ) {
	$debugMode = false;
	if ( ! $debugMode ) {
		header( 'Content-Type: application/csv' );
		header( 'Content-Disposition: attachment; filename="' . $filenameToUse . '"' );
		header( "Cache-Control: no-store, no-cache" );
	} else {
		header( 'Content-Type: text/plain' );
	}
}
function WPCW_data_export_sendHeaders_CSV ( $ filenameToUse ) { $ debugMode = false ; if ( ! $ debugMode ) { header ( 'Content-Type: application/csv' ) ; header ( 'Content-Disposition: attachment; filename="' . $ filenameToUse . '"' ) ; header ( " Cache-Control: no-store, no-cache " ) ; } else { header ( 'Content-Type: text/plain' ) ; } }
Sends the HTTP headers for CSV content that forces a download.
Sends the HTTP headers for CSV content that forces a download .
// Force the file to download // Enable below and disable header() calls above for debugging purposes.