Support » Networking WordPress » Sync Widgets and other settings to a template site

  • Ace

    (@h4hagency)


    Hi – I’m looking for some way to do what this plugin used to do: https://wordpress.org/plugins/yd-wpmu-sitewide-options/

    I.E. – keeping all subsites in sync with a single template subsite in terms of Widgets, Menus, User Roles, Custom CSS, Theme Specific Settings, etc.

    I don’t need the content to be synced – just these settings.

    Each subsite will be first duplicated off the template site, but want the subsites to auto-sync whenever the template site changes.

    THanks

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Have you tried the plugin anyway? There’s a chance it still works. Or if not, it might be easily fixed to work. Or look at its source code to learn in general what to do.

    Start with using switch_to_blog() before making any queries related to the items you want to sync. WP will then query the site data you’ve switched to, regardless of what the current site actually is. Then switch back to the proper site when finished to regain normal operation.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.