{
  "generated": "2026-03-08T00:27:31.259Z",
  "product": {
    "id": "gravitymath",
    "label": "GravityMath",
    "repo": "GravityKit/GravityMath",
    "version": "2.10.1",
    "actions": [
      "gravityview/math/init"
    ],
    "filters": [
      "gk/gravitymath/scope/form/transform-meta-value",
      "gk/gravitymath/summary/data",
      "gk/gravitymath/summary/entries",
      "gk/gravitymath/summary/headers",
      "gk/gravitymath/summary/template",
      "gk/gravitymath/table-footer-calculation/supported-fields-schema",
      "gk/gravitymath/use_db_cache",
      "gravityview/math/accuracy_message",
      "gravityview/math/admin_notice",
      "gravityview/math/aggregate_data/modify_field_value",
      "gravityview/math/debug",
      "gravityview/math/debug_message",
      "gravityview/math/entries/visible",
      "gravityview/math/no_results_message",
      "gravityview/math/precision",
      "gravityview/math/sanitize",
      "gravityview/math/shortcode/before",
      "gravityview/math/shortcode/default_value",
      "gravityview/math/shortcode/output",
      "gravityview/math/suppress_errors",
      "gravityview/math/table_footer_calculation/calculation_result",
      "gravityview/math/table_footer_calculation/format_duration_field_calculation_result",
      "gravityview/math/table_footer_calculation/math_shortcode",
      "gravityview/math/thousands_sep"
    ]
  },
  "hooks": [
    {
      "id": "gravityview-math-init",
      "name": "gravityview/math/init",
      "type": "action",
      "product": "gravitymath",
      "description": "Allow tapping in for custom function, constant definitions",
      "parameters": [],
      "categories": [
        "views"
      ],
      "example": "add_action( 'gravityview/math/init', function() {\n    // Your code here\n} );",
      "since": "[1.0](../../since/1-0/)",
      "source": {
        "file": "includes/class-gravitymath-engine.php",
        "line": 68
      },
      "url": "/docs/gravitymath/actions/gravityview-math-init/",
      "related": [
        "gravityview/math/accuracy_message",
        "gravityview/math/admin_notice",
        "gravityview/math/debug",
        "gravityview/math/debug_message",
        "gravityview/math/no_results_message"
      ]
    },
    {
      "id": "gk-gravitymath-scope-form-transform-meta-value",
      "name": "gk/gravitymath/scope/form/transform-meta-value",
      "type": "filter",
      "product": "gravitymath",
      "description": "Modify the SQL statement to transform the meta value. Default: cast to decimal.",
      "parameters": [
        {
          "name": "transformation",
          "type": "string",
          "description": "SQL statement to transform the meta value."
        },
        {
          "name": "field",
          "type": "null\\",
          "description": "\\GF_Field`"
        },
        {
          "name": "table",
          "type": "string",
          "description": "Table name or alias. Default: 'details' (alias for the entry meta table)."
        },
        {
          "name": "column",
          "type": "string",
          "description": "Column name. Default: 'meta_value'."
        }
      ],
      "categories": [
        "forms"
      ],
      "example": "add_filter( 'gk/gravitymath/scope/form/transform-meta-value', function($transformation, $field, $table, $column) {\n    // Modify $transformation as needed\n    return $transformation;\n}, 10, 4 );",
      "since": "[2.3.3](../../since/2-3-3/)",
      "source": {
        "file": "includes/class-gravitymath-gravityforms.php",
        "line": 815
      },
      "url": "/docs/gravitymath/filters/gk-gravitymath-scope-form-transform-meta-value/",
      "related": []
    },
    {
      "id": "gk-gravitymath-summary-data",
      "name": "gk/gravitymath/summary/data",
      "type": "filter",
      "product": "gravitymath",
      "description": "Modifies the calculation data before rendering the summary table.",
      "parameters": [
        {
          "name": "table_data",
          "type": "string[]",
          "description": "The table data."
        },
        {
          "name": "form",
          "type": "array",
          "description": "The form object."
        },
        {
          "name": "request",
          "type": "\\GravityMath_Summary_Request",
          "description": "The request object."
        },
        {
          "name": "raw_data",
          "type": "array",
          "description": "The raw data."
        }
      ],
      "categories": [
        "general"
      ],
      "example": "add_filter( 'gk/gravitymath/summary/data', function($table_data, $form, $request, $raw_data) {\n    // Modify $table_data as needed\n    return $table_data;\n}, 10, 4 );",
      "since": "[2.5.0](../../since/2-5-0/)",
      "source": {
        "file": "includes/summary/class-gravitymath-summary-helpers.php",
        "line": 394
      },
      "url": "/docs/gravitymath/filters/gk-gravitymath-summary-data/",
      "related": [
        "gk/gravitymath/summary/entries",
        "gk/gravitymath/summary/headers",
        "gk/gravitymath/summary/template"
      ]
    },
    {
      "id": "gk-gravitymath-summary-entries",
      "name": "gk/gravitymath/summary/entries",
      "type": "filter",
      "product": "gravitymath",
      "description": "Modifies entries object used for calculations.",
      "parameters": [
        {
          "name": "entries",
          "type": "null\\",
          "description": "\\Entry_Collection`"
        },
        {
          "name": "view",
          "type": "\\View",
          "description": "The View object."
        },
        {
          "name": "request",
          "type": "\\GravityMath_Summary_Request",
          "description": "The request object."
        }
      ],
      "categories": [
        "entries"
      ],
      "example": "add_filter( 'gk/gravitymath/summary/entries', function($entries, $view, $request) {\n    // Modify $entries as needed\n    return $entries;\n}, 10, 3 );",
      "since": "[2.8.0](../../since/2-8-0/)",
      "source": {
        "file": "includes/summary/class-gravitymath-summary-helpers.php",
        "line": 520
      },
      "url": "/docs/gravitymath/filters/gk-gravitymath-summary-entries/",
      "related": [
        "gk/gravitymath/summary/data",
        "gk/gravitymath/summary/headers",
        "gk/gravitymath/summary/template"
      ]
    },
    {
      "id": "gk-gravitymath-summary-headers",
      "name": "gk/gravitymath/summary/headers",
      "type": "filter",
      "product": "gravitymath",
      "description": "Modifies the table headers before rendering the summary table.",
      "parameters": [
        {
          "name": "table_headers",
          "type": "string[]",
          "description": "The table headers."
        },
        {
          "name": "form",
          "type": "array",
          "description": "The form object."
        },
        {
          "name": "request",
          "type": "\\GravityMath_Summary_Request",
          "description": "The request object."
        }
      ],
      "categories": [
        "general"
      ],
      "example": "add_filter( 'gk/gravitymath/summary/headers', function($table_headers, $form, $request) {\n    // Modify $table_headers as needed\n    return $table_headers;\n}, 10, 3 );",
      "since": "[2.5.0](../../since/2-5-0/)",
      "source": {
        "file": "includes/summary/class-gravitymath-summary-helpers.php",
        "line": 407
      },
      "url": "/docs/gravitymath/filters/gk-gravitymath-summary-headers/",
      "related": [
        "gk/gravitymath/summary/data",
        "gk/gravitymath/summary/entries",
        "gk/gravitymath/summary/template"
      ]
    },
    {
      "id": "gk-gravitymath-summary-template",
      "name": "gk/gravitymath/summary/template",
      "type": "filter",
      "product": "gravitymath",
      "description": "Modifies the template used to display the summary table.",
      "parameters": [
        {
          "name": "template_file",
          "type": "string",
          "description": "The template file path."
        }
      ],
      "categories": [
        "rendering"
      ],
      "example": "add_filter( 'gk/gravitymath/summary/template', function($template_file) {\n    // Modify $template_file as needed\n    return $template_file;\n}, 10, 1 );",
      "since": "[2.5.0](../../since/2-5-0/)",
      "source": {
        "file": "includes/summary/class-gravitymath-summary-helpers.php",
        "line": 426
      },
      "url": "/docs/gravitymath/filters/gk-gravitymath-summary-template/",
      "related": [
        "gk/gravitymath/summary/data",
        "gk/gravitymath/summary/entries",
        "gk/gravitymath/summary/headers"
      ]
    },
    {
      "id": "gk-gravitymath-table-footer-calculation-supported-fields-schema",
      "name": "gk/gravitymath/table-footer-calculation/supported-fields-schema",
      "type": "filter",
      "product": "gravitymath",
      "description": "Modify the list of fields that support table footer calculations.",
      "parameters": [
        {
          "name": "supported_fields_schema",
          "type": "array",
          "description": "Supported fields."
        },
        {
          "name": "available_calculation_types",
          "type": "array",
          "description": "Supported calculations."
        }
      ],
      "categories": [
        "fields"
      ],
      "example": "add_filter( 'gk/gravitymath/table-footer-calculation/supported-fields-schema', function($supported_fields_schema, $available_calculation_types) {\n    // Modify $supported_fields_schema as needed\n    return $supported_fields_schema;\n}, 10, 2 );",
      "since": "[2.3.3](../../since/2-3-3/)",
      "source": {
        "file": "includes/class-gravitymath-table-footer-calculation.php",
        "line": 240
      },
      "url": "/docs/gravitymath/filters/gk-gravitymath-table-footer-calculation-supported-fields-schema/",
      "related": []
    },
    {
      "id": "gk-gravitymath-use_db_cache",
      "name": "gk/gravitymath/use_db_cache",
      "type": "filter",
      "product": "gravitymath",
      "description": "Should GravityMath cache results?",
      "parameters": [
        {
          "name": "use_cache",
          "type": "bool",
          "description": "Should GravityMath cache results?"
        },
        {
          "name": "context",
          "type": "string",
          "description": "Context of the filter (default: \"gravityforms\")."
        }
      ],
      "categories": [
        "caching"
      ],
      "example": "add_filter( 'gk/gravitymath/use_db_cache', function($use_cache, $context) {\n    // Modify $use_cache as needed\n    return $use_cache;\n}, 10, 2 );",
      "since": "[2.2](../../since/2-2/)",
      "source": {
        "file": "includes/class-gravitymath-gravityforms.php",
        "line": 1214
      },
      "url": "/docs/gravitymath/filters/gk-gravitymath-use_db_cache/",
      "related": []
    },
    {
      "id": "gravityview-math-accuracy_message",
      "name": "gravityview/math/accuracy_message",
      "type": "filter",
      "product": "gravitymath",
      "description": "Message shown when there is a warning with the calculation.",
      "parameters": [
        {
          "name": "message",
          "type": "string",
          "description": "Default: \"* Results may not be accurate.\"."
        }
      ],
      "categories": [
        "views"
      ],
      "example": "add_filter( 'gravityview/math/accuracy_message', function($message) {\n    // Modify $message as needed\n    return $message;\n}, 10, 1 );",
      "since": "[1.0](../../since/1-0/)",
      "source": {
        "file": "includes/class-gravitymath-report.php",
        "line": 337
      },
      "url": "/docs/gravitymath/filters/gravityview-math-accuracy_message/",
      "related": [
        "gravityview/math/init",
        "gravityview/math/admin_notice",
        "gravityview/math/debug",
        "gravityview/math/debug_message",
        "gravityview/math/no_results_message"
      ]
    },
    {
      "id": "gravityview-math-admin_notice",
      "name": "gravityview/math/admin_notice",
      "type": "filter",
      "product": "gravitymath",
      "description": "Message shown when there is a warning with the calculation.",
      "parameters": [
        {
          "name": "message",
          "type": "string",
          "description": "Default: \"You can only see this message because you are logged in and have permissions.\"."
        }
      ],
      "categories": [
        "views",
        "admin"
      ],
      "example": "add_filter( 'gravityview/math/admin_notice', function($message) {\n    // Modify $message as needed\n    return $message;\n}, 10, 1 );",
      "since": "[1.2](../../since/1-2/)",
      "source": {
        "file": "includes/class-gravitymath-report.php",
        "line": 327
      },
      "url": "/docs/gravitymath/filters/gravityview-math-admin_notice/",
      "related": [
        "gravityview/math/init",
        "gravityview/math/accuracy_message",
        "gravityview/math/debug",
        "gravityview/math/debug_message",
        "gravityview/math/no_results_message"
      ]
    },
    {
      "id": "gravityview-math-aggregate_data-modify_field_value",
      "name": "gravityview/math/aggregate_data/modify_field_value",
      "type": "filter",
      "product": "gravitymath",
      "description": "Modify field value.",
      "parameters": [
        {
          "name": "transformed_value",
          "type": "string",
          "description": "Transformed field value."
        },
        {
          "name": "orginal_value",
          "type": "string",
          "description": "Original field value."
        },
        {
          "name": "field_id",
          "type": "int\\",
          "description": "float\\"
        },
        {
          "name": "entry",
          "type": "array",
          "description": "Entry data."
        },
        {
          "name": "modifier_tag",
          "type": "string\\",
          "description": "null`"
        },
        {
          "name": "entries",
          "type": "array[]",
          "description": "Array of entries."
        }
      ],
      "categories": [
        "fields",
        "views"
      ],
      "example": "add_filter( 'gravityview/math/aggregate_data/modify_field_value', function($transformed_value, $orginal_value, $field_id, $entry, $modifier_tag, $entries) {\n    // Modify $transformed_value as needed\n    return $transformed_value;\n}, 10, 6 );",
      "since": "[2.0](../../since/2-0/)",
      "source": {
        "file": "includes/class-gravitymath-gravityforms.php",
        "line": 1100
      },
      "url": "/docs/gravitymath/filters/gravityview-math-aggregate_data-modify_field_value/",
      "related": []
    },
    {
      "id": "gravityview-math-debug",
      "name": "gravityview/math/debug",
      "type": "filter",
      "product": "gravitymath",
      "description": "Whether to add the shortcode into the reporter class or not.",
      "parameters": [
        {
          "name": "debug",
          "type": "bool",
          "description": "To add or not to add."
        },
        {
          "name": "this",
          "type": "\\GravityMath_Report",
          "description": "The report."
        }
      ],
      "categories": [
        "views"
      ],
      "example": "add_filter( 'gravityview/math/debug', function($debug, $this) {\n    // Modify $debug as needed\n    return $debug;\n}, 10, 2 );",
      "since": "[1.0](../../since/1-0/)",
      "source": {
        "file": "includes/class-gravitymath-report.php",
        "line": 253
      },
      "url": "/docs/gravitymath/filters/gravityview-math-debug/",
      "related": [
        "gravityview/math/init",
        "gravityview/math/accuracy_message",
        "gravityview/math/admin_notice",
        "gravityview/math/debug_message",
        "gravityview/math/no_results_message"
      ]
    },
    {
      "id": "gravityview-math-debug_message",
      "name": "gravityview/math/debug_message",
      "type": "filter",
      "product": "gravitymath",
      "description": "Modify debugging messages displayed.",
      "parameters": [
        {
          "name": "final_message",
          "type": "string",
          "description": "Message content to be output."
        },
        {
          "name": "data",
          "type": "array",
          "description": "Error data to be displayed (empty array or [<code>code</code>, <code>leads</code>, <code>input_id</code>, <code>default_value</code>])."
        }
      ],
      "categories": [
        "views"
      ],
      "example": "add_filter( 'gravityview/math/debug_message', function($final_message, $data) {\n    // Modify $final_message as needed\n    return $final_message;\n}, 10, 2 );",
      "since": null,
      "source": {
        "file": "includes/class-gravitymath-report.php",
        "line": 565
      },
      "url": "/docs/gravitymath/filters/gravityview-math-debug_message/",
      "related": [
        "gravityview/math/init",
        "gravityview/math/accuracy_message",
        "gravityview/math/admin_notice",
        "gravityview/math/debug",
        "gravityview/math/no_results_message"
      ]
    },
    {
      "id": "gravityview-math-entries-visible",
      "name": "gravityview/math/entries/visible",
      "type": "filter",
      "product": "gravitymath",
      "description": "Modify visible entries",
      "parameters": [],
      "categories": [
        "entries",
        "views"
      ],
      "example": "add_filter( 'gravityview/math/entries/visible', function() {\n    // Modify $value as needed\n    return $value;\n} );",
      "since": "[2.0](../../since/2-0/)",
      "source": {
        "file": "includes/class-gravitymath-gravityforms.php",
        "line": 843
      },
      "url": "/docs/gravitymath/filters/gravityview-math-entries-visible/",
      "related": []
    },
    {
      "id": "gravityview-math-no_results_message",
      "name": "gravityview/math/no_results_message",
      "type": "filter",
      "product": "gravitymath",
      "description": "Message shown when there is an error associated with the calculation.",
      "parameters": [
        {
          "name": "message",
          "type": "string",
          "description": "Default: \"** No Results Currently Available.\"."
        }
      ],
      "categories": [
        "views"
      ],
      "example": "add_filter( 'gravityview/math/no_results_message', function($message) {\n    // Modify $message as needed\n    return $message;\n}, 10, 1 );",
      "since": "[1.0](../../since/1-0/)",
      "source": {
        "file": "includes/class-gravitymath-report.php",
        "line": 348
      },
      "url": "/docs/gravitymath/filters/gravityview-math-no_results_message/",
      "related": [
        "gravityview/math/init",
        "gravityview/math/accuracy_message",
        "gravityview/math/admin_notice",
        "gravityview/math/debug",
        "gravityview/math/debug_message"
      ]
    },
    {
      "id": "gravityview-math-precision",
      "name": "gravityview/math/precision",
      "type": "filter",
      "product": "gravitymath",
      "description": "Filters the float precision value.",
      "parameters": [
        {
          "name": "float_precision",
          "type": "int",
          "description": "The number of decimal places to use as a maximum precision level."
        }
      ],
      "categories": [
        "views"
      ],
      "example": "add_filter( 'gravityview/math/precision', function($float_precision) {\n    // Modify $float_precision as needed\n    return $float_precision;\n}, 10, 1 );",
      "since": "[1.0](../../since/1-0/)",
      "source": {
        "file": "includes/class-gravitymath-shortcode.php",
        "line": 108
      },
      "url": "/docs/gravitymath/filters/gravityview-math-precision/",
      "related": [
        "gravityview/math/init",
        "gravityview/math/accuracy_message",
        "gravityview/math/admin_notice",
        "gravityview/math/debug",
        "gravityview/math/debug_message"
      ]
    },
    {
      "id": "gravityview-math-sanitize",
      "name": "gravityview/math/sanitize",
      "type": "filter",
      "product": "gravitymath",
      "description": "Modify the sanitization.",
      "parameters": [
        {
          "name": "sanitized_formula",
          "type": "string",
          "description": "Sanitized formula."
        },
        {
          "name": "original_formula",
          "type": "string",
          "description": "Original formula."
        }
      ],
      "categories": [
        "views"
      ],
      "example": "add_filter( 'gravityview/math/sanitize', function($sanitized_formula, $original_formula) {\n    // Modify $sanitized_formula as needed\n    return $sanitized_formula;\n}, 10, 2 );",
      "since": "[1.0](../../since/1-0/)",
      "source": {
        "file": "includes/class-gravitymath-shortcode.php",
        "line": 175
      },
      "url": "/docs/gravitymath/filters/gravityview-math-sanitize/",
      "related": [
        "gravityview/math/init",
        "gravityview/math/accuracy_message",
        "gravityview/math/admin_notice",
        "gravityview/math/debug",
        "gravityview/math/debug_message"
      ]
    },
    {
      "id": "gravityview-math-shortcode-before",
      "name": "gravityview/math/shortcode/before",
      "type": "filter",
      "product": "gravitymath",
      "description": "Modify the formula before being processed.",
      "parameters": [
        {
          "name": "formula",
          "type": "string",
          "description": "The math formula to modify."
        },
        {
          "name": "atts",
          "type": "array",
          "description": "Shortcode parameters."
        },
        {
          "name": "content",
          "type": "string",
          "description": "Content passed to the shortcode."
        },
        {
          "name": "shortcode",
          "type": "string",
          "description": "Shortcode used (default: <code>gv_math</code>)."
        },
        {
          "name": "this",
          "type": "\\GravityMath_Shortcode",
          "description": "is Current object."
        },
        {
          "name": "nesting_level",
          "type": "int",
          "description": "Current nesting level."
        }
      ],
      "categories": [
        "views",
        "shortcodes",
        "before"
      ],
      "example": "add_filter( 'gravityview/math/shortcode/before', function($formula, $atts, $content, $shortcode, $this, $nesting_level) {\n    // Modify $formula as needed\n    return $formula;\n}, 10, 6 );",
      "since": "[1.0](../../since/1-0/)",
      "source": {
        "file": "includes/class-gravitymath-shortcode.php",
        "line": 307
      },
      "url": "/docs/gravitymath/filters/gravityview-math-shortcode-before/",
      "related": [
        "gravityview/math/shortcode/default_value",
        "gravityview/math/shortcode/output"
      ]
    },
    {
      "id": "gravityview-math-shortcode-default_value",
      "name": "gravityview/math/shortcode/default_value",
      "type": "filter",
      "product": "gravitymath",
      "description": "Modify the default value before being processed.",
      "parameters": [
        {
          "name": "default_value",
          "type": "mixed",
          "description": "The default value to modify. Default: 'skip'."
        }
      ],
      "categories": [
        "views",
        "shortcodes"
      ],
      "example": "add_filter( 'gravityview/math/shortcode/default_value', function($default_value) {\n    // Modify $default_value as needed\n    return $default_value;\n}, 10, 1 );",
      "since": null,
      "source": {
        "file": "includes/class-gravitymath-shortcode.php",
        "line": 237
      },
      "url": "/docs/gravitymath/filters/gravityview-math-shortcode-default_value/",
      "related": [
        "gravityview/math/shortcode/before",
        "gravityview/math/shortcode/output"
      ]
    },
    {
      "id": "gravityview-math-shortcode-output",
      "name": "gravityview/math/shortcode/output",
      "type": "filter",
      "product": "gravitymath",
      "description": "Modify the output of the shortcode",
      "parameters": [
        {
          "name": "result",
          "type": "string",
          "description": "Shortcode output."
        },
        {
          "name": "atts",
          "type": "array",
          "description": "Shortcode parameters."
        },
        {
          "name": "content",
          "type": "string",
          "description": "Content passed to the shortcode."
        },
        {
          "name": "shortcode",
          "type": "string",
          "description": "Shortcode used (default: <code>gv_math</code>)."
        },
        {
          "name": "this",
          "type": "\\GravityMath_Shortcode",
          "description": "Current object."
        },
        {
          "name": "nesting_level",
          "type": "string",
          "description": "Level of shortcode nesting."
        }
      ],
      "categories": [
        "views",
        "shortcodes"
      ],
      "example": "add_filter( 'gravityview/math/shortcode/output', function($result, $atts, $content, $shortcode, $this, $nesting_level) {\n    // Modify $result as needed\n    return $result;\n}, 10, 6 );",
      "since": "[1.0](../../since/1-0/)",
      "source": {
        "file": "includes/class-gravitymath-shortcode.php",
        "line": 344
      },
      "url": "/docs/gravitymath/filters/gravityview-math-shortcode-output/",
      "related": [
        "gravityview/math/shortcode/before",
        "gravityview/math/shortcode/default_value"
      ]
    },
    {
      "id": "gravityview-math-suppress_errors",
      "name": "gravityview/math/suppress_errors",
      "type": "filter",
      "product": "gravitymath",
      "description": "Toggle whether to suppress (not show) math functionality errors.",
      "parameters": [
        {
          "name": "suppress_errors",
          "type": "bool",
          "description": "True: don't show the errors. False: show the errors. Default: false."
        }
      ],
      "categories": [
        "views"
      ],
      "example": "add_filter( 'gravityview/math/suppress_errors', function($suppress_errors) {\n    // Modify $suppress_errors as needed\n    return $suppress_errors;\n}, 10, 1 );",
      "since": "[1.0](../../since/1-0/)",
      "source": {
        "file": "includes/class-gravitymath-report.php",
        "line": 999
      },
      "url": "/docs/gravitymath/filters/gravityview-math-suppress_errors/",
      "related": [
        "gravityview/math/init",
        "gravityview/math/accuracy_message",
        "gravityview/math/admin_notice",
        "gravityview/math/debug",
        "gravityview/math/debug_message"
      ]
    },
    {
      "id": "gravityview-math-table_footer_calculation-calculation_result",
      "name": "gravityview/math/table_footer_calculation/calculation_result",
      "type": "filter",
      "product": "gravitymath",
      "description": "Modify calculation result.",
      "parameters": [
        {
          "name": "calculation_result",
          "type": "string",
          "description": "Calculation result."
        },
        {
          "name": "field",
          "type": "array",
          "description": "Field data."
        },
        {
          "name": "column",
          "type": "array",
          "description": "Column data."
        },
        {
          "name": "math_shortcode",
          "type": "string",
          "description": "Math shortcode."
        }
      ],
      "categories": [
        "views"
      ],
      "example": "add_filter( 'gravityview/math/table_footer_calculation/calculation_result', function($calculation_result, $field, $column, $math_shortcode) {\n    // Modify $calculation_result as needed\n    return $calculation_result;\n}, 10, 4 );",
      "since": "[2.0](../../since/2-0/)",
      "source": {
        "file": "includes/class-gravitymath-table-footer-calculation.php",
        "line": 667
      },
      "url": "/docs/gravitymath/filters/gravityview-math-table_footer_calculation-calculation_result/",
      "related": [
        "gravityview/math/table_footer_calculation/format_duration_field_calculation_result",
        "gravityview/math/table_footer_calculation/math_shortcode"
      ]
    },
    {
      "id": "gravityview-math-table_footer_calculation-format_duration_field_calculation_result",
      "name": "gravityview/math/table_footer_calculation/format_duration_field_calculation_result",
      "type": "filter",
      "product": "gravitymath",
      "description": "Format calculation result of a duration field.",
      "parameters": [
        {
          "name": "calculation_result",
          "type": "float",
          "description": "Total duration in seconds."
        },
        {
          "name": "filter_data",
          "type": "array",
          "description": "\\{"
        }
      ],
      "categories": [
        "fields",
        "views",
        "forms"
      ],
      "example": "add_filter( 'gravityview/math/table_footer_calculation/format_duration_field_calculation_result', function($calculation_result, $filter_data) {\n    // Modify $calculation_result as needed\n    return $calculation_result;\n}, 10, 2 );",
      "since": "[2.0](../../since/2-0/)",
      "source": {
        "file": "includes/class-gravitymath-table-footer-calculation.php",
        "line": 883
      },
      "url": "/docs/gravitymath/filters/gravityview-math-table_footer_calculation-format_duration_field_calculation_result/",
      "related": [
        "gravityview/math/table_footer_calculation/calculation_result",
        "gravityview/math/table_footer_calculation/math_shortcode"
      ]
    },
    {
      "id": "gravityview-math-table_footer_calculation-math_shortcode",
      "name": "gravityview/math/table_footer_calculation/math_shortcode",
      "type": "filter",
      "product": "gravitymath",
      "description": "Modify Math shortcode used for calculation.",
      "parameters": [
        {
          "name": "shortcode",
          "type": "string",
          "description": "The Math shortcode being used for calculation."
        },
        {
          "name": "scope",
          "type": "string",
          "description": "The scope in which the calculation is being performed."
        },
        {
          "name": "field_id",
          "type": "string",
          "description": "The ID of the field being calculated."
        },
        {
          "name": "view_id",
          "type": "int",
          "description": "The ID of the GravityView view."
        },
        {
          "name": "form_id",
          "type": "int",
          "description": "The ID of the Gravity Forms form."
        },
        {
          "name": "calculation_type",
          "type": "string",
          "description": "The type of calculation being performed (e.g., 'count', 'sum', 'avg')."
        },
        {
          "name": "field",
          "type": "array",
          "description": "Data about the field being calculated."
        },
        {
          "name": "column",
          "type": "array",
          "description": "Data about the column in the view."
        },
        {
          "name": "formula",
          "type": "string",
          "description": "The math formula used for the calculation."
        },
        {
          "name": "process_empty_meta",
          "type": "string",
          "description": "Whether to process fields with empty meta (1 or 0)."
        },
        {
          "name": "multi_select_count_method",
          "type": "string",
          "description": "Method for counting multi-select field choices (count individually or as one)."
        }
      ],
      "categories": [
        "views",
        "shortcodes"
      ],
      "example": "add_filter( 'gravityview/math/table_footer_calculation/math_shortcode', function($shortcode, $scope, $field_id, $view_id, $form_id, $calculation_type, $field, $column, $formula, $process_empty_meta, $multi_select_count_method) {\n    // Modify $shortcode as needed\n    return $shortcode;\n}, 10, 11 );",
      "since": "[2.0](../../since/2-0/)",
      "source": {
        "file": "includes/class-gravitymath-table-footer-calculation.php",
        "line": 795
      },
      "url": "/docs/gravitymath/filters/gravityview-math-table_footer_calculation-math_shortcode/",
      "related": [
        "gravityview/math/table_footer_calculation/calculation_result",
        "gravityview/math/table_footer_calculation/format_duration_field_calculation_result"
      ]
    },
    {
      "id": "gravityview-math-thousands_sep",
      "name": "gravityview/math/thousands_sep",
      "type": "filter",
      "product": "gravitymath",
      "description": "Change the thousands separator used to clean GF merge tag values.",
      "parameters": [
        {
          "name": "thousands_sep",
          "type": "string",
          "description": "The thousands separator for numbers. Normally either a comma or dot."
        }
      ],
      "categories": [
        "views"
      ],
      "example": "add_filter( 'gravityview/math/thousands_sep', function($thousands_sep) {\n    // Modify $thousands_sep as needed\n    return $thousands_sep;\n}, 10, 1 );",
      "since": "[1.0](../../since/1-0/)",
      "source": {
        "file": "includes/class-gravitymath-shortcode.php",
        "line": 200
      },
      "url": "/docs/gravitymath/filters/gravityview-math-thousands_sep/",
      "related": [
        "gravityview/math/init",
        "gravityview/math/accuracy_message",
        "gravityview/math/admin_notice",
        "gravityview/math/debug",
        "gravityview/math/debug_message"
      ]
    }
  ],
  "stats": {
    "total": 25,
    "actions": 1,
    "filters": 24
  }
}