gform_activecampaign_tags

Description

This filter can be used to modify the tags which will be added to the contact.

Usage

Applies to all forms:

add_filter( 'gform_activecampaign_tags', 'your_function_name', 10, 4 );

Applies to a specific form:

add_filter( 'gform_activecampaign_tags_4', 'your_function_name', 10, 4 );

Parameters

Examples

This example shows how you can add a tag.

add_filter( 'gform_activecampaign_tags', function( $tags, $feed, $entry, $form ) {

$tags[] = 'some tag';

return $tags;
}, 10, 4 );

Placement

This code should be placed in the functions.php file of your active theme.

Source Code

gf_apply_filters( 'gform_activecampaign_tags', $form['id'], $tags, $feed, $entry, $form );

This filter is located in GFActiveCampaign::process_feed() in class-gf-activecampaign.php.

Since

This filter was added in ActiveCampaign 1.2.