Description
The gform_bulk_action_threshold filter allows developers to customize the number of entries required to trigger background processing for bulk actions. By default, background processing begins when 100 or more entries are selected.
Usage
Applies to all forms:
add_filter( 'gform_bulk_action_threshold', 'your_function_name', 10, 1 );
Parameters
| Parameter | Type | Description |
|---|---|---|
| $threshold | Integer | The minimum number of entries required to trigger background processing. Default is 100. |
Examples
Increase the threshold to 500 entries before background processing is triggered.
add_filter( 'gform_bulk_action_threshold', 'custom_bulk_action_threshold' );
function custom_bulk_action_threshold( $threshold ) {
return 500;
}
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 GF_Bulk_Action_Endpoint_Start::get_threshold() in includes/bulk-actions/endpoints/class-gf-bulk-action-endpoint-start.php.
Since
This filter was added in Gravity Forms 2.9.26