fg_entryautomation_export_lines

Description

This filter can be used to allow the csv entry export lines to be filtered just before they are saved to the temporary file.

This is the Entry Automation specific equivalent to the gform_export_lines filter in the Gravity Forms.

Usage

add_filter( 'fg_entryautomation_export_lines', 'your_function_name', 10, 3 );

Parameters

Examples

This example shows you how to remove the default quote formatting around exported values.

add_filter( 'fg_entryautomation_export_lines', 'remove_quotes_from_csv_export', 10, 3 );
function remove_quotes_from_csv_export ( $lines, $task, $file_path ) {
    $no_quotes = str_replace('"', '', $lines);
    return $no_quotes;
}