Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save aimahdi/45bc48250e5452a4437a708ae9f1c1f4 to your computer and use it in GitHub Desktop.
Save aimahdi/45bc48250e5452a4437a708ae9f1c1f4 to your computer and use it in GitHub Desktop.
Fluent Form alter data before submission
add_filter('fluentform_insert_response_data', 'your_custom_response_data_filter_function', 10, 3);
function your_custom_response_data_filter_function($formData, $formId, $inputConfigs)
{
if($formId != 151) {
return $formData;
}
$formData['email'] = 'test@gmail.com';
// Your can alter the data here
return $formData;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment