wpdatatables_cell_filter_column_id_value

Contents

Description

This filter is used to modify the column ID value for a specific cell before it is returned.

Usage

add_filter( 'wpdatatables_cell_filter_column_id_value', 'cell_filter_column_id_value', 10, 5 );

Parameters

  • $columnIDValue string
    Column value.
  • $columnKey string
    Column name.
  • $rowID integer
    ID of the cell row.
  • $columnID integer
    ID of the column.
  • $tableId integer
    ID of table from database.

Examples

// Callback function for the wpdatatables_cell_filter_column_id_value filter hook
function cell_filter_column_id_value ($columnIDValue, $columnKey, $rowID, $columnID, $tableID) {
    if ($tableID === 1) { // Replace 1 with your table ID
       //Your code
    }
 
}, 10, 5);

add_filter( 'wpdatatables_cell_filter_column_id_value', 'cell_filter_column_id_value', 10, 5);