Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author bobbysmith007

    (@bobbysmith007)

    I have added an advanced example which might help you.

    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 Karan NA Gupta

    (@nuancedesignstudio)

    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.