Title: Calling a custom function after insert/update/delete
Last modified: August 22, 2016

---

# Calling a custom function after insert/update/delete

 *  Resolved [nuancedesignstudio](https://wordpress.org/support/users/nuancedesignstudio/)
 * (@nuancedesignstudio)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/calling-a-custom-function-after-insertupdatedelete/)
 * Hi,
    Thank you for this very useful plugin. I wanted to know how I could run 
   a custom function after an insert/update/delete takes place.
 * An example will be really helpful.
 * Regards,
    Karan
 * [https://wordpress.org/plugins/wp-db-table-editor/](https://wordpress.org/plugins/wp-db-table-editor/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [bobbysmith007](https://wordpress.org/support/users/bobbysmith007/)
 * (@bobbysmith007)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/calling-a-custom-function-after-insertupdatedelete/#post-5731934)
 * I have added an advanced example which might help you.
 * [https://github.com/AccelerationNet/wp-db-table-editor/blob/master/examples/cf7dbsubmit_integration.php](https://github.com/AccelerationNet/wp-db-table-editor/blob/master/examples/cf7dbsubmit_integration.php)
 * Your question implies that this example is a bit overkill, and that maybe I need
   to add some notification actions as well.
 * I just released version 1.2.8 which has notification actions in place. From the
   new readme:
 * —-
 * dbte_row_deleted, dbte_row_updated, dbte_row_inserted
 * Called after a row is deleted, updated, or inserted passes
 * \`
    add_action(‘dbte_row_deleted’, ‘my_dbte_row_deleted’, 10, 2);
 * function my_dbte_row_deleted($currentTable, $idRemoved){
    // do things }
 * add_action(‘dbte_row_updated’, ‘my_dbte_row_upserted’, 10, 4);
    add_action(‘dbte_row_inserted’,‘
   my_dbte_row_upserted’, 10, 4);
 * function my_dbte_row_upserted($currentTable, $values, $columns, $indexedModified){
   //
   do things }
 * `
 * Please do let me know if this is not as resolved as I hope
 *  Thread Starter [nuancedesignstudio](https://wordpress.org/support/users/nuancedesignstudio/)
 * (@nuancedesignstudio)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/calling-a-custom-function-after-insertupdatedelete/#post-5731979)
 * Perfect. Thank you so much.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Calling a custom function after insert/update/delete’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-db-table-editor.svg)
 * [WP-DB-Table-Editor](https://wordpress.org/plugins/wp-db-table-editor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-db-table-editor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-db-table-editor/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-db-table-editor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-db-table-editor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-db-table-editor/reviews/)

## Tags

 * [custom function](https://wordpress.org/support/topic-tag/custom-function/)

 * 2 replies
 * 2 participants
 * Last reply from: [nuancedesignstudio](https://wordpress.org/support/users/nuancedesignstudio/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/calling-a-custom-function-after-insertupdatedelete/#post-5731979)
 * Status: resolved