• Resolved quambo

    (@quambo)


    Hi,
    I know you do not plan to implement this, as I’ve seen from another post.
    But do you have any hint how I could implemented that?
    Where exactly is the data saved? Is it saved in the database?
    Do you have any actions that I could hook to like rowadded, rowupdated, rowdeleted or something?

    http://ww.wp.xz.cn/extend/plugins/tablepress/

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

    (@tobiasbg)

    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

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    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!

    Thread Starter quambo

    (@quambo)

    Done 😉

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks, I really appreciate it!

    Best wishes,
    Tobias

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

The topic ‘Again multisite question’ is closed to new replies.