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 filter allows you to manipulate the column separator for a .csv file.
Usage
add_filter( 'frm_export_csv_column_sep', 'custom_function' );
Parameters
- $column_separator (string): The column separator
Examples
Separate columns of CSV with semicolon
Use this code example to separate the columns of a .csv file with a semicolon instead of a column. This is helpful if you want to change the default column separator when exporting the CSV using the Table View to CSV add-on.
add_filter( 'frm_export_csv_column_sep', 'separate_csv_column_semicolon');
function separate_csv_column_semicolon( $column_separator ) {
return ';';
}