gfp_stripe_customer_description

The Gravity Forms + Stripe gfp stripe customer description hook.

Description

apply_filters( 'gfp_stripe_customer_description', (string) $form_data_name, (unknown) $form_data, (unknown) $form ); 

Parameters (3)

0. $form_data_name (string)
The form data name.
1. $form_data (unknown)
The form data.
2. $form (unknown)
The form.

Usage

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

Defined (1)

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

/includes/class-gfp-stripe.php  
  1. 'description' => apply_filters( 'gfp_stripe_customer_description', $form_data[ 'name' ], $form_data, $form ),