wpdatatables_add_and_save_custom_column

Contents

Description

This action is triggered during the saving process of columns in a wpDataTable. It allows you to hook into the moment when custom frontend columns are being saved.

Usage

add_action('wpdatatables_add_and_save_custom_column', 'handle_custom_columns', 10, 3);

Parameters

  • $table (WDTTable)
    The table object currently being saved.
  • $tableId (int)
    The ID of the table being updated.
  • $frontendColumns (array)
    An array of column settings provided from the frontend.

Examples

function handle_custom_columns($table, $tableId, $frontendColumns) {
    // Your code here
}
add_action('wpdatatables_add_and_save_custom_column', 'handle_custom_columns', 10, 3);