Created
August 16, 2021 11:52
-
-
Save aimahdi/45bc48250e5452a4437a708ae9f1c1f4 to your computer and use it in GitHub Desktop.
Fluent Form alter data before submission
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'] = '[email protected]'; | |
// 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