This filter is used to change the maximum number of columns that can be selected in a Conductor Widget. The column setting is available when the selected Conductor Widget Display supports Conductor Flexbox columns.
Note: The minimum number that this value can be set to is 1.
Note: Conductor Widgets support up to 6 columns by default. If the maximum number of columns is increased beyond 6, you will have to create your own CSS to accommodate accordingly.
This filter is executed when the
Conductor_Widget::__construct() function is called (when a Conductor Widget instance is created).
$max_columns (int): Maximum number of columns
$widget (Conductor_Widget): Conductor_Widget instance
Return Value: int
The following example sets the maximum number of columns for Conductor Widgets to 4.