wpdatatables_filter_hidden_cell

Contents

Description

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

Usage

add_filter( 'wpdatatables_filter_hidden_cell', 'filter_hidden_cell', 10, 3 );

Parameters

  • $content string
    Formatted formula cell value.
  • $editingValue mixed
    The default value set for the editable field.
  • $tableId integer
    ID of table from database.

Examples

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

add_filter( 'wpdatatables_filter_hidden_cell', 'filter_hidden_cell', 10, 3);