gravity_forms_constant_contact_action_by

The Gravity Forms Constant Contact Add-On gravity forms constant contact action by hook.

Description

apply_filters( 'gravity_forms_constant_contact_action_by', (string) $action_by_contact ); 

Parameters (1)

0. $action_by_contact (string) => 'ACTION_BY_CONTACT'
Who is creating the entries? If the business and not the customer, ACTION_BY_CONTACT.. Otherwise, ACTION_BY_CUSTOMER.

Usage

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

Defined (1)

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

/api/class.cc_gf_superclass.php  
  1. $actionBy = apply_filters('gravity_forms_constant_contact_action_by', 'ACTION_BY_CONTACT');