Description
The “gform_getresponse_limit_pre_get_campaigns” filter in Gravity Forms GetResponse Add-On modifies the number of campaigns that are retrieved when creating a feed. The default is 100.
Usage
add_filter( 'gform_getresponse_limit_pre_get_campaigns', 'your_function_name' );
Parameters
- $limit int
Number of campaigns to be retrieved from GetResponse.
Example
Increase the number of campaigns returned by GetResponse to 350.
add_filter( 'gform_getresponse_limit_pre_get_campaigns', function ( $limit ) {
return 350;
} );
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?
Since
This filter was added in the Gravity Forms GetResponse Add-On version 1.7
Source Code
return (int) apply_filters( 'gform_getresponse_limit_pre_get_campaigns', 100 );
This filter is located in class-gf-getresponse.php