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

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

Parameters

  • $lines string
    Lines to be included in .csv export
  • $task Task
    Entry Automation Task meta.
  • $file_path array
    File name of export file.

Examples

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

PHP
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;
}