• Resolved billc108

    (@billc108)


    Hi all,

    I’m trying to modify a plugin such that it will pull specific data from the options table on ONE site of a multisite setup (in my case, the master site), rather than having to duplicate that data and the inevitable changes over time to all of the (currently) 56 sites. That’s what the developer currently recommends doing as of the last forum post on the subject that I’ve found. But it seems more than a little tedious – why spend lots of time manually updating multiple sites when it should be possible to do it once and affect all?

    The plugin is datafeedr v2 and right now it uses the common get_option function to pull the data from the options table of the site it’s installed in.

    How does multisite deal with this kind of thing? Is there a sitewide option table? The closest thing I see is the wp_sitemeta table. Or would it be possible to somehow constrain the plugin to ignore which site it’s currently serving, and pull from the wp_options table instead of the wp_xx_options table?

    Thanks for any ideas.

Viewing 1 replies (of 1 total)
  • Thread Starter billc108

    (@billc108)

    Hah! Figured a hack for the datafeedr plugin:

    Add

    switch_to_blog(1);

    just after
    function dfrads($group_id=false) {
    at approximately line 389

Viewing 1 replies (of 1 total)
  • The topic ‘multisite get_option?’ is closed to new replies.