wpdatatables_filter_formula_cell

Contents

Description

This filter is applied to the value of a formula cell after it is formatted and returned to the front-end.

Usage

add_filter( 'wpdatatables_filter_formula_cell', 'filter_formula_cell', 10, 2 );

Parameters

  • $formattedValue string
    Formatted formula cell value.
  • $tableId integer
    ID of table from database.

Examples

// Callback function for the wpdatatables_filter_formula_cell filter hook
function filter_formula_cell( $formattedValue, $tableId ) { 
   // Check for specific table Id
   if ( $tableId == 1) { 
     // Your code
   }
   return $content;
}

add_filter( 'wpdatatables_filter_formula_cell', 'filter_formula_cell', 10, 2);