gform_activecampaign_supported_field_types_email_map

Description

This filter can be used to allow different field types to be mapped to ActiveCampaign’s email field.

Usage

Applies to all forms:

add_filter( 'gform_activecampaign_supported_field_types_email_map', 'your_function_name' );

Parameters

  • $field_types array | bool

    Array of field types or “true” for all field types.

Examples

This example shows how you can add a text field type for mapping.

add_filter( 'gform_activecampaign_supported_field_types_email_map', function( $field_types ) { 

    return array( 'email', 'hidden', 'text' );
    
} );

Placement

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

Source Code

$field_types = apply_filters( 'gform_activecampaign_supported_field_types_email_map', array( 'email', 'hidden' ) );

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

Since

This filter was added in ActiveCampaign 1.5.