gravity_forms_constant_contact_action_by
The Gravity Forms Constant Contact Add-On gravity forms constant contact action by hook.
Description
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.
- $action_by_contact = apply_filters( 'gravity_forms_constant_contact_action_by', $action_by_contact );
- if ( !empty( $action_by_contact ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the gravity_forms_constant_contact_action_by callback
- function filter_gravity_forms_constant_contact_action_by( $action_by_contact ) {
- // make filter magic happen here...
- return $action_by_contact;
- };
- // add the filter
- 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.
- // remove the filter
- 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
- $actionBy = apply_filters('gravity_forms_constant_contact_action_by', 'ACTION_BY_CONTACT');