Description
The wpforms_pro_admin_entries_export_configuration
filter will filter the delimiter used in CSV exports of form entries.
Parameters
- $configuration
- (string) (Required) Delimiter used in CSV exports. Default is a comma
(',')
Source
wpforms/src/Pro/Admin/Entries/Export/Export.php
More Information
The wpforms_pro_admin_entries_export_configuration
filter is applied to entry data exported to a CSV file. It can be used to change the type of delimiter used in the CSV.
Examples
/** * Filters the delimiter used in CSV exports of form entries. * * @link https://wpforms.com/developers/wpforms_pro_admin_entries_export_configuration/ * * @param string $configuration Delimiter used in CSV exports. Default is comma. * @return string */ function wpf_dev_pro_admin_entries_export_configuration( $configuration ) { // Set the CSV export separator from a comma to a semicolon $configuration[ 'csv_export_separator' ] = ';'; return $configuration; } add_filter( 'wpforms_pro_admin_entries_export_configuration', 'wpf_dev_pro_admin_entries_export_configuration', 10, 1 );
To add this snippet to your site, you can review this documentation.
Avoid using text or spaces for this separator.
Related
Article Reference: Change CSV Export Delimiter