Description
The gform_getresponse_limit_pre_get_custom_fields allows the maximum number of custom fields which are retrieved from GetResponse to be overridden.
Usage
add_filter( 'gform_getresponse_limit_pre_get_custom_fields', 'your_function_name' );
Parameters
- $limit int
The custom fields limit. Defaults to 100.
Example
This example shows how you can modify the limit.
add_filter( 'gform_getresponse_limit_pre_get_custom_fields', function ( $limit ) { return 200; } );
Placement
This code should be placed in the functions.php file of your active theme or a custom functions plugin.
Since
This filter was added in GetResponse version 1.5.
Source Code
This filter is located in GFGetResponse::get_custom_fields_limit() in gravityformsgetresponse/class-gf-getresponse.php.