The generic way to do it, is by using the pre_option_{option}
https://codex.wordpress.org/Plugin_API/Filter_Reference/pre_option_(option_name) filter to override the “local” settings and use the value being stored in your “main” sub site.
something like
add_filter( 'pre_option_the_plugin_option_name', function () {
// Code assumes that "blog" 1 is the main one in which the relevant settings are stored.
if (get_current_blog_id() != 1) {
return get_blog_option(1, 'the_plugin_option_name');
}
return false;
}
Depending on the complexity of the plugin, it might not be enough and you will need additional overrides, but this type of code should be enough for simple cases.
Related Posts:
- How to add Custom Blog Options to new blog setup form?
- Plugin for editing options on multisite?
- differences between behavior get_option vs get_site_option in multisite
- How To Provide Sub-Blogs Their Own Domain Names?
- Multisite: How to store global options vs. site options?
- Blog Settings import/export in WordPress Network environment
- How to make WordPress use new Upload Path settings in Multisite Setup
- Add site options UI in Multisite Sites > Infos page
- What is the correct form action URL for network options pages?
- Using WP CLI to set options in WP Multisite
- Add New Sub Site from the WordPress back end then in sub site options table option_value must be with https
- How to update_site_option for specific site within network?
- WordPress (+WPMU) Import/Export ALL settings?
- Does WordPress MultiSite use separate MySql databases?
- What are Attributes used for in a WordPress Multisite?
- Multisite Network menu links not updating
- How to get option values set from all sites within a Multisite setup?
- Bulk theme settings in wordpress multisite
- What is the function to get options of the parent site of a multisite network?
- wp-config dynamic hostname in WP_HOME and WP_SITEURL
- WordPress Network admin options page: how to store options and where will they be stored?
- ERR_TOO_MANY_REDIRECTS when i config my subdomains
- Register submenu on network menu from the subsite
- Why is MySQL receiving such a large serialized object?
- How do you update a network option value in the DB via a hook
- Update blog option during create new blog?
- get_site_option / update_site_option – the main site and sub sites do not share the same storage
- Multisite Equivalent of `register_setting`?
- wp option get blogname –url=my-sub-site.com returning main site option
- Update siteurl and home in multisite subsites to https
- Which action hook to update custom field at network/site-info.php in multisite on update site info
- multisite shared settings
- Multisite and plugins options
- How to display update message only to admin
- How to set an option for all sites in my Multisite network?
- Perform action on WPMU blog deletion
- Changing Multisite themes on mass
- Sitemap Plugin for WordPress Network
- WordPress Multisite with NGINX, subfolders, and FROM a subfolder
- How to consolidate all sitemaps in a multisite network?
- Multisite installation combining subdomains and subdirectories
- How to find site id for one site on a multisite
- Stop wordpress from sending out moderation emails
- Make default new sites https (multisite)
- Sharing Header Components Across Multisite
- How to get a user role of a specific blog in multisite?
- Issue converting single site to multi-site – blogs.dir folder not created
- Logout issue with new Domain on WP Multisite
- Subdomain and subdirectories together in one installation
- Get users primary blog URL in MultiSite
- Redirect subdomain homepage to domain specific page in wordpress multisite
- Make WordPress Search for Both Main Domain and Subdomain
- Is it possible to setup multiple sites with a common pool of posts?
- Multisites, upload issues, and iOS!
- Multisite new sites not found(404), main site still works [closed]
- Retrieving multisite blog IDs, somehow failing to foreach them properly
- How to host blog on separate domain from main site
- How to use a Wildcard SSL with WordPress Network?
- Migrating wordpress multisite and domain mapping plugin
- WordPress Multisite – Can 2 domains share a database of users?
- Can you create a local wordpress network / multisite install on a mac with subdomains?
- How to solve this issue
- Cookie signed verification failed – wp-saving-post
- What is the way to share data between sites in a multisite
- Subsite access without being a member of the subsite in wp multisite network
- Redirect loop after activating wordpress multisite feature
- Error: reassigning content to a different user is not supported on multisite
- Run additional service on domain with WordPress Multisite?
- Development of new theme and rollout on multisite
- metaboxes disappear on saved pages
- How to show only blog-domain instead of the whole permalink in the loop
- Multiple subsites in a single wordpress installation
- How many databases do I need?
- How to sync roles across Multisite?
- Multisite Subdirectory Site Dashboard redirect loop
- WordPress Multisites or Multiple WP Single sites?
- Is it possible to disable html code error auto fixing feature by wordpress 4.9.1?
- LimitInternalRecursion error
- Should I use Multi Site to achieve different designs for different sections?
- User registration is currently not allowed
- $_SERVER[‘SERVER_NAME’] in WP_SITEURL
- WPMU on MySQL limited to 1GB of space?
- Two installs conflicting – Pages redirecting
- Set my own password when registering a multisite user or site
- Efficient way to fetch all archived WPMS blogs
- WP-Cli Error When Mapping Multisite Subdomain
- Serve theme and plugins assets from correct domain on multi-domain multisite
- WP Multisite Sub-Domain Error
- Can WP multisite manage multiple ccTLDs
- Should i use multisite for my business?
- WordPress Network with SSL for multiple domains
- Nginx rules for subdomain multisite install (Bedrock)
- WP Admin Panel for Multi-site install not loading JavaScript for one Subdomain
- multisite detect subsite blog number
- How to Create WPMu New User?
- Is it possible to create a login for restricted visibility?
- WordPress Multisite Subsite WP admin not working
- multi-language multi-site with REST API
- How to make Multisite global login that redirects to correct subsite after login
- Advice on WP site structure using multisite