gform_export_separator

gform_export_separator

DescriptionUsageParametersExamplesPlacementSource Code

Description
Use this filter to change the column separator character for the entry export file. The default separator is a comma (,).
Usage
add_filter( 'gform_export_separator', 'change_separator', 10, 2 );

You can also target a specific form by adding the form id after the filter name.
add_filter( 'gform_export_separator_6', 'change_separator', 10, 2 );

Parameters

$separator string
Value of the separator character to be filtered.

$form_id integer
ID of the current form.

Examples
This example changes the separator to a pipe (|).
add_filter( '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 GFExport::start_export() in export.php.

發表回覆

您的郵箱地址不會被公開。 必填項已用 * 標註