• Resolved coltonhashmt

    (@coltonhashmt)


    Hi, thank you for maintaining this great plugin!

    I am managing a website with many users who update important information on different tables, using Ninja Tables. I am wondering if there are any developer hooks for Ninja Tables, specifically for when data is updated in Ninja Tables?

    I would like to run a script when information in Ninja Tables is updated, calling a log function with the Simple History Plugin, so that I can see a log of what users update information in a table.

    There are a number of 3rd party plugins that have built in support for the Simple History Plugin, so this is something that the Ninja Tables developer team could consider.

    https://ww.wp.xz.cn/plugins/simple-history/

Viewing 1 replies (of 1 total)
  • Plugin Support Syed Numan

    (@annuman)

    Hello @coltonhashmt,

    Yes, Ninja Tables provides a developer hook that you can use to run custom actions when a table row is updated. Here’s the hook:

    add_action('ninja_table_after_update_item', function($itemId, $tableId, $attributes) {
    // code..
    }, 10, 3);

    This action fires right after a row is updated in any table.

    Thank you

Viewing 1 replies (of 1 total)

The topic ‘Developer Hooks for Updating Table Data’ is closed to new replies.