Excuse me if I’m misunderstanding you, but aren’t the functions add_site_option()
, update_site_option()
and get_site_option()
pretty much, they fall back to single site functions, if not used in a multisite environment, only there for the purpose of having network-wide options.
Update:
Regarding your need to change a single site option for all sites in your network. Get all sites of the network with wp_get_sites()
, which returns an array of arrays. You can use the array to loop through your single sites in your multisite installation. Make use of switch_to_blog()
and restore_current_blog()
while looping against the $blog_ids
. In between the loop after switching and before restoring, use the single site options functions add_option()
, update_option()
and get_option()
as needed.
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?
- How do I share plugin settings across WordPress network?
- 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
- Perform action on WPMU blog deletion
- Changing Multisite themes on mass
- Sitemap Plugin for WordPress Network
- Import a regular WordPress blog into a MU installation
- Basic analytics across WordPress Multisite network [closed]
- Which is the recommended method to transfer a wordpress site to wordpress Multisite?
- Hierarchical Page Listing of all Pages in a Multisite Network
- Asian language multisite IDN subdomain
- Changing Multisite URL after the subsite has been in use
- Can’t find “Add New” button for themes in a multisite
- How to make wp-signup.php a 1-step process [closed]
- Multi-site: Change the URL of main site to HTTPS
- Multiple Multisite networks on the same domain?
- How the mu-plugins Folder Works in a Multisite Installation?
- Replacing the default content created while the site creation
- Multisite, can’t see sub blogs
- Google Docs Viewer have problem in MultiSite sub-blogs
- upgrade from WPMU 2.9.2 to WP 3.2.1
- What does “Use BalanceTags” Do?
- How to create a network using a command line script?
- How to list WP multisite languages
- Mapping subdomain to point to sudirectory site in WordPress Multisite Network
- Syncing content in Multisite. Possible?
- Query to import data from one MultiSite table to another (pages/sub-pages)
- Multisite – Images often getting uploaded to the wrong month directory
- How to fix blocked cookies error that doesn’t let me log into wp-admin?
- Draft preview and customize permission problems on multisite main site
- How to create a Multi-Network subsite?
- Will changing the folder name two directories above a fresh wordpress installation break the site?
- Multisite -> XMLRPC
- Migrating static site to multisite with multiple domains and subdomains
- Migrating Multisite with WP-Cli and/or Search-Replace-DB
- Generate HTTPS Urls in multisite
- If statement in wp-config.php, is it possible?
- How do I correctly configure my AMPPS localhost to use subdomains for multisite?
- WordPress Multisite URLs and Multiple Updates
- WordPress multisite, allow non super admins to create sites
- WordPress Importer Tries to save media files to wrong site folder
- How can I remove a site from a network?
- How to Force WWW. in Domain With WordPress MU Domain Mapping Plugin?
- How does WP decide how to evaluate database integrity
- Fastest way to fetch posts across a multisite
- Redirect custom post type across multisite network
- WordPress multisite second site admin resulting in too many redirects error
- Timber\Image an image from another site in network
- customize admin bar (desktop+ responsive)
- WordPress Multisite – Domain Mapping
- WordPress Multisite keeps redirecting to HTTPS
- Migrating a WP site with 2 WP installations
- What could cause wpmu_create_blog to throw “Already Installed” Error on multisite?
- User Roles in multisite – odd behavior
- Setting up a multisite wordpress
- Using multisite, how can I get two different sites on the network to have different active themes?
- For a multisite WordPress site, how can I access a tag feed across all subsites?
- Issue when transforming an existing site to multi-site with subfolders setup
- Single sign on to sub-sites in Multisite Network
- How to configure CNAMES to be part of a WordPress Network
- Get the post URL from wordpress posts
- Should I use individual WordPress installs or WordPress-Mutisite install?
- Moved my site to new host now getting 404
- WPMU widget use sitewide
- Redirect WordPress MS to no-www version, excepting some dirs and prefixes
- Is WordPress multisite is good to go?
- How to give “author” user role appropriate capabilities to add PollDaddy polls? WordPress multisite
- wordpress multisite duplicator plugin clon to localhost(xampp) but image not show