gform_activecampaign_tags

gform_activecampaign_tags

DescriptionUsageParametersExamplesPlacementSource CodeSince

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

$tags array
The current tags.

$feed Feed Object
The current feed object.

$entry Entry Object
The current entry object.

$form Form Object
The current form object.

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.

發表回覆

您的郵箱地址不會被公開。 必填項已用 * 標註