gfp_stripe_get_order_info_line_items

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

Description

apply_filters( 'gfp_stripe_get_order_info_line_items', (unknown) $line_items, (unknown) $product_price, (unknown) $field_id, (unknown) $quantity, (unknown) $product, (unknown) $description, (unknown) $item, (unknown) $form_data ); 

Parameters (8)

0. $line_items (unknown)
The line items.
1. $product_price (unknown)
The product price.
2. $field_id (unknown)
The field id.
3. $quantity (unknown)
The quantity.
4. $product (unknown)
The product.
5. $description (unknown)
The description.
6. $item (unknown)
The item.
7. $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_line_items', $line_items, $product_price, $field_id, $quantity, $product, $description, $item, $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_line_items callback 
  2. function filter_gfp_stripe_get_order_info_line_items( $line_items, $product_price, $field_id, $quantity, $product, $description, $item, $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_line_items', 'filter_gfp_stripe_get_order_info_line_items', 10, 8 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'gfp_stripe_get_order_info_line_items', 'filter_gfp_stripe_get_order_info_line_items', 10, 8 ); 

Defined (1)

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

/includes/class-gfp-stripe.php  
  1. $new_line_item = apply_filters( 'gfp_stripe_get_order_info_line_items', $line_items, $product_price, $field_id, $quantity, $product, $description, $item, $form_data );