Description

The wpforms_pro_admin_entries_export_form_data filters entries during form data init.

Parameters

$form_data
(array) Processed form settings/data, prepared to be used later.

Source

wpforms/src/Pro/Admin/Entries/Export/Export.php

More Information

The filter will allow for developers who want to modify the entry data before the export is generated.

Examples

/**
 * Filter $form_data during the export request.
 *
 * @link   https://wpforms.com/developers/wpforms_pro_admin_entries_export_form_data/
 *
 * @param array  $form_data   Form data.
 */

function wpf_export_add_data( $form_data ) {

	// Add a new key/value pair to the request data.
	$request_data[ 'foo' ] = 'bar';

	// Return the updated request data.
	return $request_data;
}
add_filter( 'wpforms_pro_admin_entries_export_form_data', 'wpf_export_add_data' );