gform_action_pre_payment_callback

The Gravity Forms gform action pre payment callback hook.

Description

do_action( 'gform_action_pre_payment_callback', (unknown) $action, (unknown) $entry ); 

Parameters (2)

0. $action (unknown)
The action.
1. $entry (unknown)
The entry.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'gform_action_pre_payment_callback', $action, $entry ); 
The following example is for adding a hook callback.
  1. // define the gform_action_pre_payment_callback callback 
  2. function action_gform_action_pre_payment_callback( $action, $entry ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'gform_action_pre_payment_callback', 'action_gform_action_pre_payment_callback', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'gform_action_pre_payment_callback', 'action_gform_action_pre_payment_callback', 10, 2 ); 

Defined (1)

The action is defined in the following location(s).

/includes/addon/class-gf-payment-addon.php  
  1. do_action( 'gform_action_pre_payment_callback', $action, $entry );