Skip to main content

Filter: gravityview/math/table_footer_calculation/math_shortcode

Modify Math shortcode used for calculation.

Parameters

NameTypeDescription
$shortcodestringThe Math shortcode being used for calculation.
$filter_dataarray
↳ $scopestringThe scope in which the calculation is being performed.
↳ $field_idstringThe ID of the field being calculated.
↳ $view_idintThe ID of the GravityView view.
↳ $form_idintThe ID of the Gravity Forms form.
↳ $calculation_typestringThe type of calculation being performed (e.g., 'count', 'sum', 'avg').
↳ $fieldarrayData about the field being calculated.
↳ $columnarrayData about the column in the view.
↳ $formulastringThe math formula used for the calculation.
↳ $process_empty_metastringWhether to process fields with empty meta (1 or 0).
↳ $multi_select_count_methodstringMethod for counting multi-select field choices (count individually or as one).

Since

Source

Defined in includes/class-gravitymath-table-footer-calculation.php at line 795