CYBER MONDAY - 30% OFF Use coupon CM30 at checkout - Learn more

wsf_submit_export_csv_header

Description

The wsf_submit_export_csv_header filter hook is used to modify the headers that appear in submission CSV exports.

Usage

add_filter( 'wsf_submit_export_csv_header', 'my_hook_function', 10, 2 );

Parameters

  1. $csv_header Array
    An array of key value pairs used for outputting the CSV header.
  2. $form_id Integer
    The form ID associated with the export.

Example

// Callback function for the wsf_submit_export_csv_header filter hook
function my_hook_function( $csv_header, $form_id ) {
	
	// Your code here ...

	// Return value
	return $csv_header;
}

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

Source File

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