Back to list of all filter and action hooks for Fluid Checkout Lite.
Description #
Defines which field types should render as enhanced dropdown fields, whether set to use select2 or TomSelect.
Parameters #
$field_types(array) Array of field types that should use enhanced dropdown fields.
Examples #
/**
* Remove country field type from select2
*/
function remove_country_from_select2_field_types( $field_types ) {
// Remove 'country' from the array
$field_types = array_diff( $field_types, array( 'country' ) );
return $field_types;
}
add_filter( 'fc_select2_field_types', 'remove_country_from_select2_field_types', 10 );
