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 header row(s) in your downloaded CSV file from the Formidable → Logs page.
Usage
add_action('frm_log_csv_headers', 'change_log_csv_headers', 10, 2);
Parameters
- $form_id (int)
- $fields (array)
Examples
Encode UTF-8 with BOM
This example will allow the downloaded CSV log to be encoded with BOM.
add_action('frm_log_csv_headers', 'change_log_bom_csv');
function change_log_bom_csv() {
echo chr(239) . chr(187) . chr(191);
}