DescriptionUsageParametersExamplesSource Code
Description
Runs a function after payment, before the callback occurs.
Usage
1add_action( 'gform_action_pre_payment_callback', 'my_function', 10, 2 );
Parameters
$action array
Array for the payment action triggered.
$entry Entry Object
Entry object for the new entry.
Examples
123456function my_function($action, $entry) { if( $action['type'] == 'complete_payment' ) { // Do something }}add_action( 'gform_action_pre_payment_callback', 'my_function', 10, 2 );
Source Code
1do_action( 'gform_action_pre_payment_callback', $action, $entry );
This action hook is located in GFPaymentAddOn::process_callback_action() in includes/addon/class-gf-payment-addon.php.