Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Examples of how to use the caldera_forms_checkbox_calculate_sum filter. SEE: https://calderaforms.com/doc/caldera_forms_checkbox_calculate_sum/
<?php
add_filter( 'caldera_forms_checkbox_calculate_sum', function( $use, $field ){
if( 'fld_33993' == $field[ 'ID' ] ){
//false indicates that highest, not sum should be used.
return false;
}
return $use;
}, 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.