gform_mailchimp_lists_params

Description

The “gform_mailchimp_lists_params” filter in Gravity Forms Mailchimp Add-On allows the request parameters to be modified when getting Mailchimp lists/audiences.

Usage

add_filter( 'gform_mailchimp_lists_params', 'my_function' );

Parameters

  • $params array

    Contains the parameters being sent.

    $params = array( 'start' => 0, 'limit' => 100 );

Examples

1. Increase limit

This example shows how you can increase the maximum number of lists/audiences that can be retrieved.

add_filter( 'gform_mailchimp_lists_params', function ( $params ) {
    $params['limit'] = 200;

    return $params;
} );

Placement

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

Since

This filter was added in Gravity Forms version 3.0.

Source Code

This filter is located in class-gf-mailchimp.php.