wpdatatables_after_delete_charts

Contents

Description

The wpdatatables_after_delete_charts action is triggered after a chart has been deleted from the database, allowing you to perform additional cleanup or custom actions once a chart is removed.

Usage

add_action('wpdatatables_after_delete_charts', 'my_after_chart_delete_handler', 10, 2);

Parameters

  • $chartId (int) The ID of the chart that was deleted.
  • $type (string) The type of deleted object. Always set to 'chart' in this context.

Examples

// Example: Log chart deletion
function my_after_chart_delete_handler($chartId, $type) {
    // Your code here
}
add_action('wpdatatables_after_delete_charts', 'my_after_chart_delete_handler', 10, 2);