Description
The gform_klaviyo_limit_pre_get_lists filter allows the maximum number of Klaviyo lists retrieved from the API to be modified. The value is used when populating the list dropdown in the feed settings. Defaults to 100.
Usage
add_filter( 'gform_klaviyo_limit_pre_get_lists', 'your_function_name' );
Parameters
| Parameter | Type | Description |
|---|---|---|
$limit | int | The maximum number of lists to retrieve. Defaults to 100. |
Examples
Increase the limit
add_filter( 'gform_klaviyo_limit_pre_get_lists', function( $limit ) {
return 250;
} );
Placement
This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.
See also the PHP section in this article: Where Do I Put This Code?
Source Code
This filter is located in get_lists_limit() in the Gravity Forms Klaviyo Add-On.
Since
This filter was added in Klaviyo Add-On 1.0.