wpdatatables_excel_filter_delete_rows

Contents

Description

This filter allows the modification of rows before deletion in an excel-like table on the front-end.

Usage

add_filter( 'wpdatatables_excel_filter_delete_rows', 'filter_delete_rows', 10, 2 );

Parameters

  • $rows array
    The array structure of the rows being deleted.
  • $tableId integer
    ID of table from database.

Examples

// Callback function for the wpdatatables_excel_filter_delete_rows filter hook
function filter_delete_rows( $rows, $tableId ) { 
   // Your code
   return $rows;
}
add_filter( 'wpdatatables_excel_filter_delete_rows', 'filter_delete_rows', 10, 2);