Description
Use this filter to change the column separator character for the entry export file. The default separator is a comma (,)
Usage
<?php
add_action("gform_export_separator", "change_separator", 10, 2);
?>
You can also target a specific form by adding the form id after the filter name.
<?php
add_action("gform_export_separator_6", "change_separator", 10, 2);
?>
Parameters
$separator
- (string) Value of the separator character to be filtered.
$form_id
- (int) ID of the current form.
Examples
This example changes the separator to a pipe (|)
<?php
add_action("gform_export_separator", "change_separator", 10, 2);
function change_separator($separator, $form_id){
return "|";
}
?>
Placement
This code should be placed in the functions.php file of your active theme.
Source Code
This action hook is located in export.php