wpdatatables_excel_before_frontend_edit_row

Contents

Description

The `wpdatatables_excel_before_frontend_edit_row` action is triggered before a row is edited via the frontend Excel-like editor. This allows you to modify cell data or perform custom validation before the row is processed.

Usage

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
do_action('wpdatatables_excel_before_frontend_edit_row', array $cellsData, array $returnResult, int $tableId);
do_action('wpdatatables_excel_before_frontend_edit_row', array $cellsData, array $returnResult, int $tableId);
do_action('wpdatatables_excel_before_frontend_edit_row', array $cellsData, array $returnResult, int $tableId);

Parameters

  • $cellsData array
    The data of the cells being edited.
  • $returnResult array
    The response array containing success and error messages.
  • $tableId int
    The ID of the table being edited.

Examples

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
// Callback function for the wpdatatables_excel_before_frontend_edit_row action
function custom_before_frontend_edit_row($cellsData, &$returnResult, $tableId) {
// Your code here
}
add_action('wpdatatables_excel_before_frontend_edit_row', 'custom_before_frontend_edit_row', 10, 3);
// Callback function for the wpdatatables_excel_before_frontend_edit_row action function custom_before_frontend_edit_row($cellsData, &$returnResult, $tableId) { // Your code here } add_action('wpdatatables_excel_before_frontend_edit_row', 'custom_before_frontend_edit_row', 10, 3);
// Callback function for the wpdatatables_excel_before_frontend_edit_row action
function custom_before_frontend_edit_row($cellsData, &$returnResult, $tableId) {
    // Your code here
}

add_action('wpdatatables_excel_before_frontend_edit_row', 'custom_before_frontend_edit_row', 10, 3);