Well, “update_wpmu_options” is certainly the wrong hook. It doesn’t send the blog_id as a parameter, so your code won’t ever work with that hook and use of the blog_id parameter.
If you just wanted to update the value on each site, then I would just put update_option('uploads_use_yearmonth_folders', 0);
on the init
hook, and wait for each site to be visited once.
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?
- 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?
- Create multiple subdomains for multi-site from a database
- How to map a specific multi-site blog to a folder?
- using 1 form shortcode (si or cf7) for all multisite sites [closed]
- How to manage multiple domain with different languages on each domain with single wordpress installation?
- Is there any fundamental difference in developing a wordpress multi-network site?
- merging two multisites
- W3 Total Cache Plugin with WP 3 MultiUser [closed]
- Should multi-language site using multi-site architecture have default language in base site?
- Redirect loop (only for multisite network admin)
- favicon and multi site
- Register email as username
- Recover from failed multisite conversion
- Multisite Subdomain Using More Resources Than Others?
- Cookie nonce is invalid – Multisite
- Multisite setup on VVV with bedrock
- Trouble with switch_to_blog()
- WordPress Multisite prevent direct access to subdomain
- WordPress mutisite migration
- Multisite, multiple domains per site
- delete_user_meta : how to delete all the metadata of a given user (witout SQL)
- Multisite Network Localisation
- Can set_transient() be used in multi-site?
- What would you recommend for hosting 10+ individual wordpress websites?
- Redirect only posts to New Domain
- Image problem – Multisite image upload broken
- problem with main site (root domain) redirects to subdomain (multisite)
- Add a user to a specific blog when they register?
- Redirect & permalink problems after moving multisite to a new server
- Optimizing Query used for a Shortcode
- Different use for WordPress Multisite
- Multisite User Sync Question about blog authorship
- How to enable error logs and debug mode in WordPress using Azure Cloud?
- WordPress multisite suddenly malfunctioning
- Multisite Redirection to new domains
- Cannot use pre_set_site_transient_update_themes from within a theme in multisite
- Multisite wordpress config on multidomain
- Is this a job for WP MultiSite with domain mapping plugin?
- How Can I Automatically Post WordPress Posts to 2 Domains
- Can’t access Dashboard of a Multisite WordPress. Chrome results in “ERR_TOO_MANY_REDIRECTS”
- How do I get the site url from a Block (within the block editor)
- Multisite – One Site with multiple URLs
- Delete all user’s meta without knowing all the ‘key’
- Activation Account Email
- moving tables between multisite installs
- Stylesheet and JS linking error in WP multisite nested path
- Can I run multiple blogs from my local machine
- Trouble with SQL SELECT inside switch_to_blog()
- Multisite htaccess file causing segfault (Segmentation fault 11)
- Images uploaded after adding multisite do not get loaded in any domain of the multisite network
- Migrating from domain mapping plugin to native domain mapping
- Search returns “Nothing Found” on a sub directory
- Define default settings for new sites on multisite network with mu-plugin
- Users getting linked unwanted to main mu in WordPress multisite (WPMU)
- Multisite + wp_mail – Route Via Site Conditionally
- WordPress automatic Login on other page?
- Multisite: How to bypass wpmu_signup_user_notification and add my own notification logic?
- Header lists posts instead of showing primary nav menu
- MU domain mapping without using a plugin
- Multisite Demo Data for New Site
- Responsive Wordress Site – Serve different post types to each device
- How to apply specific plugins to affect all sites (Multisite Network)
- Is there a way to have wordpress 301 versus 302 urls by default?
- first load of the page gives 404 error
- Some Subdomains on a Multisite Install Not Found
- WordPress Multisite restict user access