Extended Cyber Monday Sale: 30% OFF with coupon CM30

wsf_submit_export_csv_row

Description

The wsf_submit_export_csv_row filter hook is used to modify the output of a row when exporting submission data.

Usage

add_filter( 'wsf_submit_export_csv_row', 'my_hook_function', 10, 3 );

Parameters

  1. $csv_row Array
    An array of key value pairs containing the data from the current row being exported.
  2. $form_id Integer
    The form ID associated with the export.
  3. $submit Submit Object
    The submit object associated with the current row being export.

Example

// Callback function for the wsf_submit_export_csv_row filter hook
function my_hook_function( $csv_row, $form_id, $submit ) {
	
	// Your code here ...

	// Return value
	return $csv_row;
}

// Add a callback function for the wsf_submit_export_csv_row filter hook
add_filter( 'wsf_submit_export_csv_row', 'my_hook_function', 10, 3 );

Source File

This hook can be found in: <plugin root>/includes/core/class-ws-form-submit.php