The gform_mailchimp_lists_params filter allows you to modify the request parameters when getting MailChimp lists/audiences in the Gravity Forms Mailchimp Add-On.
Usage
add_filter('gform_mailchimp_lists_params', 'my_function');
Parameters
- $params (array): Contains the parameters being sent. Example:
$params = array('start' => 0, 'limit' => 100);
More information
See Gravity Forms Docs: gform_mailchimp_lists_params
Examples
Increase limit
This example increases the maximum number of lists/audiences that can be retrieved.
add_filter('gform_mailchimp_lists_params', function($params) { $params['limit'] = 200; return $params; });
Note: Place this code in the functions.php file of your active theme.
This filter was added in Gravity Forms version 3.0.
The source code for this filter is located in class-gf-mailchimp.php.