wpdatatables_filter_cell_output

Contents

Description

This filter is used to reformat the output array and reorder the data as specified by the user before it is returned.

Usage

add_filter( 'wpdatatables_filter_cell_output', 'filter_cell_output', 10, 3 );

Parameters

  • $formattedValue string
    String cell value.
  • $tableId integer
    ID of table from database.
  • $columnOrder integer
    Number of column order.

Examples

// Callback function for the wpdatatables_filter_cell_output filter hook
function filter_cell_output($formattedValue, $tableId, $columnOrder) {
    if ( $tableId == 1) { 
     // Your code
   }
}

add_filter( 'wpdatatables_filter_cell_output', 'filter_cell_output', 10, 3 );