Skip to content

Instantly share code, notes, and snippets.

@Shelob9
Last active May 19, 2017 01:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Shelob9/1ae8222194f365f74d7d84a8c4e953f9 to your computer and use it in GitHub Desktop.
Save Shelob9/1ae8222194f365f74d7d84a8c4e953f9 to your computer and use it in GitHub Desktop.
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