gfp_stripe_get_form_data

The Gravity Forms + Stripe gfp stripe get form data hook.

Description

apply_filters( 'gfp_stripe_get_form_data', (unknown) $form_data, (unknown) $feed, (unknown) $products, (unknown) $form, (unknown) $tmp_lead ); 

Parameters (5)

0. $form_data (unknown)
The form data.
1. $feed (unknown)
The feed.
2. $products (unknown)
The products.
3. $form (unknown)
The form.
4. $tmp_lead (unknown)
The tmp lead.

Usage

To run the hook, copy the example below.
  1. $form_data = apply_filters( 'gfp_stripe_get_form_data', $form_data, $feed, $products, $form, $tmp_lead ); 
  2.  
  3. if ( !empty( $form_data ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the gfp_stripe_get_form_data callback 
  2. function filter_gfp_stripe_get_form_data( $form_data, $feed, $products, $form, $tmp_lead ) { 
  3. // make filter magic happen here... 
  4. return $form_data
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'gfp_stripe_get_form_data', 'filter_gfp_stripe_get_form_data', 10, 5 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'gfp_stripe_get_form_data', 'filter_gfp_stripe_get_form_data', 10, 5 ); 

Defined (1)

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

/includes/class-gfp-stripe.php  
  1. $form_data = apply_filters( 'gfp_stripe_get_form_data', $form_data, $feed, $products, $form, $tmp_lead );