Heads up!
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
Use this hook to customize the CSV filename when exporting logs from Formidable.
Formidable Forms is the best WordPress Form Builder plugin. Get it for free!
Usage
add_filter('frm_logs_csv_filename', 'change_logs_csv_filename', 10, 2);
Parameters
- $filename (string)
Examples
Change CSV log filename
Use this code to change the filename of the downloaded CSV log file.
add_filter('frm_logs_csv_filename', 'change_logs_csv_filename', 10, 2);
function change_logs_csv_filename($filename){
$filename = date("ymdHis",time()) . '_formidable_logs.csv';//Change the filename here
return $filename;
}