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/pro/includes/admin/entries/
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.
For the purpose of this specific snippet, we recommend that you add the snippet by either creating a site-specific custom plugin or using the Insert Headers and Footers – Code Snippets by WPCode plugin as mentioned in this documentation.
Related
Snippet Reference: Change CSV Export Delimiter