wpdatatables_filter_cell_val

Contents

Description

This filter is applied to the value of the cell before it is returned to the front-end.

Usage

add_filter( 'wpdatatables_filter_cell_val', 'filter_cell_val', 10, 2 );

Parameters

  • $val
    Cell value.
  • $tableId integer
    ID of table from database.

Examples

// Callback function for the wpdatatables_filter_cell_val filter hook
function filter_cell_val( $val, $tableId ) { 
   // Check for specific table Id
   if ( $tableId == 1) { 
     // Your code
   } 
}

add_action( 'wpdatatables_filter_cell_val', 'filter_cell_val', 10, 2);