wpdatatables_excel_filter_frontend_formdata

Contents

Description

This filter allows the modification of cells in an excel-like table after editing on the front-end.

Usage

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
add_filter( 'wpdatatables_excel_filter_frontend_formdata', 'filter_excel_cell_data', 10, 2 );
add_filter( 'wpdatatables_excel_filter_frontend_formdata', 'filter_excel_cell_data', 10, 2 );
add_filter( 'wpdatatables_excel_filter_frontend_formdata', 'filter_excel_cell_data', 10, 2 );

Parameters

  • $cellsData array
    The cell data in array format containing the changed cells.
  • $tableId integer
    ID of table from database.

Examples

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
// Callback function for the wpdatatables_excel_filter_frontend_formdata filter hook
function filter_excel_cell_data( $cellsData, $tableId ) {
// Your code
return $cellsData;
}
add_filter( 'wpdatatables_excel_filter_frontend_formdata', 'filter_excel_cell_data', 10, 2);
// Callback function for the wpdatatables_excel_filter_frontend_formdata filter hook function filter_excel_cell_data( $cellsData, $tableId ) { // Your code return $cellsData; } add_filter( 'wpdatatables_excel_filter_frontend_formdata', 'filter_excel_cell_data', 10, 2);
// Callback function for the wpdatatables_excel_filter_frontend_formdata filter hook
function filter_excel_cell_data( $cellsData, $tableId ) { 
   // Your code
   return $cellsData;
}
add_filter( 'wpdatatables_excel_filter_frontend_formdata', 'filter_excel_cell_data', 10, 2);