• Resolved grantdailey

    (@grantdailey)


    I am curious if there is some way to add rows to a table created in TablePress using php. I use Zapier and would like to create a scenario where some action in another app triggers a Hookpress call that can then hook into TablePress and create a new row in an existing table, populated from data supplied to Zapier by the other app.

    I understand this lies outside the scope of what you can do for support, but if you have any suggestions for a starting point, they would be appreciated.

Viewing 1 replies (of 1 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    For this, you’d need to load the full table, modify the two-dimensional array, and save that again. Basically, you could try to duplicate the save method from the controller-admin-ajax.php file and adjust that to your needs.

    Regards,
    Tobias

Viewing 1 replies (of 1 total)

The topic ‘Programmatically Append Rows to a Table’ is closed to new replies.