DescriptionUsageParametersExamplePlacementSinceSource Code
Description
This filter can be used to override the contact properties before they are passed to the GetResponse API.
Usage
The following would apply to all feeds:
add_filter( 'gform_getresponse_contact', 'your_function_name', 10, 5 );
To target feeds for a specific form append the form id to the filter name. (format: gform_getresponse_contact_FORMID)
add_filter( 'gform_getresponse_contact', 'your_function_name', 10, 5 );
Parameters
$contact array
The contact properties.
$existing_contact bool | array
False or the existing contact properties.
$feed Feed Object
The feed currently being processed.
$entry Entry Object
The entry currently being processed.
$form Form Object
The form currently being processed.
Example
This example shows how you can modify the contact properties to trigger autoresponders when a contact is added to a list.
add_filter( 'gform_getresponse_contact', function ( $contact ) {
$contact['dayOfCycle'] = 0;
return $contact;
} );
Placement
This code should be placed in the functions.php file of your active theme.
Since
This filter was added in GetResponse version 1.4.
Source Code
This filter is located in gravityformsgetresponse/class-gf-stripe.php.