gfp_stripe_get_order_info_shipping

The Gravity Forms + Stripe gfp stripe get order info shipping hook.

Description

apply_filters( 'gfp_stripe_get_order_info_shipping', (unknown) $line_items, (unknown) $products, (number) $amount, (unknown) $item, (unknown) $additional_fields, (unknown) $form_data ); 

Parameters (6)

0. $line_items (unknown)
The line items.
1. $products (unknown)
The products.
2. $amount (number)
The amount.
3. $item (unknown)
The item.
4. $additional_fields (unknown)
The additional fields.
5. $form_data (unknown)
The form data.

Usage

To run the hook, copy the example below.
  1. $line_items = apply_filters( 'gfp_stripe_get_order_info_shipping', $line_items, $products, $amount, $item, $additional_fields, $form_data ); 
  2.  
  3. if ( !empty( $line_items ) ) { 
  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_order_info_shipping callback 
  2. function filter_gfp_stripe_get_order_info_shipping( $line_items, $products, $amount, $item, $additional_fields, $form_data ) { 
  3. // make filter magic happen here... 
  4. return $line_items
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'gfp_stripe_get_order_info_shipping', 'filter_gfp_stripe_get_order_info_shipping', 10, 6 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'gfp_stripe_get_order_info_shipping', 'filter_gfp_stripe_get_order_info_shipping', 10, 6 ); 

Defined (1)

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

/includes/class-gfp-stripe.php  
  1. $shipping_info = apply_filters( 'gfp_stripe_get_order_info_shipping', $line_items, $products, $amount, $item, $additional_fields, $form_data );