Description
This filter allows the max file size for imported Chained Select files to be controlled.
Usage
add_filter( 'gform_chainedselects_max_file_size', 'your_function_name' );
Parameters
- $size int
The max file size in bytes
Examples
add_filter( 'gform_chainedselects_max_file_size', 'set_size' ); function set_size( $size ) { return 2000000; //2mb }
Placement
This code should be placed in the functions.php file of your active theme.
Source Code
This filter is located in GFChainedSelects::get_max_file_size() in gravityformschainedselects/class-gf-chainedselects.php.