bookmark_bordergform_action_pre_payment_callback

Description

Runs a function after payment, before the callback occurs.

Usage

add_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

function my_function($action, $entry) {
    if( $action['type'] == 'complete_payment' ) {
        // Do something
    }
}
add_action( 'gform_action_pre_payment_callback', 'my_function', 10, 2 );

Source Code

do_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