gform_chainedselects_column_unique_values_limit

Description

The “gform_chainedselects_column_unique_values_limit” filter limits the number of unique values allowed for each column.

Usage

add_filter( 'gform_chainedselects_column_unique_values_limit', 'your_function_name' );

Parameters

  • $limit int

    The limit of unique values allowed for each column.

Examples

add_filter( 'gform_chainedselects_column_unique_values_limit', 'set_limit' );
function set_limit( $limit ) {
	return 100;
}

Placement

This code should be placed in the functions.php file of your active theme.

Source Code

This filter is located in GF_Chained_Field_Select::is_choice_limit_exceeded() in gravityformschainedselects/class-gf-chainedselects.php.