wpdatatables_after_delete_tables

Contents

Description

The wpdatatables_after_delete_tables action is triggered after a wpDataTable and its associated data are deleted from the database. It allows you to perform additional cleanup or custom actions after the deletion process.

Usage

add_action('wpdatatables_after_delete_tables', 'my_after_delete_tables', 10, 2);

Parameters

  • $tableId int
    The ID of the deleted wpDataTable.
  • $type string
    The type of object being deleted. In this context, always 'table'.

Examples

function my_after_delete_tables($tableId, $type) {
    // Your code here
}
add_action('wpdatatables_after_delete_tables', 'my_after_delete_tables', 10, 2);