wpdatatables_custom_populate_cells

Contents

Description

The wpdatatables_custom_populate_cells action is triggered after the data rows have been populated and sanitized. It allows you to hook into the process and perform custom logic on the table instance or modify how cell data is handled.

Usage

add_action('wpdatatables_custom_populate_cells', 'my_custom_cell_populator', 10, 2);

Parameters

  • $table object
    The wpDataTable instance being processed.
  • $wdtColumnTypes array
    An array of column types indexed by header keys.

Examples

function my_custom_cell_populator($table, $wdtColumnTypes) {
    // Your code here
}
add_action('wpdatatables_custom_populate_cells', 'my_custom_cell_populator', 10, 2);