Description #
If the form has payment then this action will be fired before submission. You can use this to do your payment related custom tasks.
/*
* Source Action
*/
do_action('fluentform/before_insert_payment_form', $insertData, $data, $form);
Usage #
add_action('fluentform/before_insert_payment_form', 'custom_funtion', 10, 3);
function custom_function($insertData, $data, $form)
{
// Do your stuff here
}
Parameters #
- $insertData (array) Form response data
- $data (array) Input data
- $form (Object) The $form Object
Source Code #
This action is located in fluentform/app/Services/Form/SubmissionHandlerService.php