Description

Filters 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 );

Snippet Reference: Change CSV Export Delimiter