Customize filename of csv exported file
I wonder whether it is possible to customize the name of the csv file that is extracted with the "CSV Export" plugin.
You can change the CSV file name to anything you want after you download but not before downloading. It uses the table name and data for the file name.
If you wanted to change the name that is used for the default name. In the csvExport.php file you would edit this:
$filename = "$tableName-" . date('Ymd-His') . '.csv';
Hope this helps!
Damon Edis - interactivetools.com
Hire me! Save time by getting our experts to help with your project.