Hi,
what exactly do you mean? Sharing tables between two sites on a multisite?
The data is saved in a “Custom Post Type” in the “wp_posts” DB table. Additionally, each table is part of an array (that maps the table ID to a post ID) in a JSON encoded string in the wp_options table.
Actions like rowadded, rowupdated, … do not exist, but you could maybe use the regular WordPress hooks, that fire when a post is added/edited/deleted.
The better and easier solution might be to use the “table auto update” Extension, which is described at http://ww.wp.xz.cn/support/topic/use-an-external-csv-or-autoimport With that, you could set up the one site so that it mirrors the tables from the other site. (Editing tables should then however only be done on the “master copy”.)
Regards,
Tobias
Thread Starter
quambo
(@quambo)
Thanks for the quick response, the solution you linked looks perfect. The “master only” maintenance of the table is not a problem for me anyway.
Regards,
Benjamin
Hi Benjamin,
awesome, great to hear that this will work for you 🙂
Best wishes,
Tobias
P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!
Hi,
thanks, I really appreciate it!
Best wishes,
Tobias