The answer is to call the switch_to_blog($blog_id)
function before calling any WooCommerce functions, then restore_current_blog()
once done.
Related Posts:
- WordPress Multisite: Adding actions to only one site
- Woocommerce and different checkout field for different countries
- WooCommerce Multisite — importing products IN subsites FROM main site
- WordPress multisite with separate domains
- Change Woocommerce languange on a multisite install
- Multi-vendor with custom shop site for each vendor
- Which Multi-language option for WordPress is best from an SEO and Woocommerce perspective?
- WooCommerce API Returns 401
- Optimal setup for Multi Domain WordPress with Woocommerce
- Woocommerce Membership synchronised accross multisite
- Add external url to WooCommerce My Account navigation
- Allow users to register on multisite through WooCommerce using the same email address
- Add additional Network constants to wp-config.php dynamically
- Why is WordPress Multisite redirecting to wp-signup.php and how to fix it?
- Post and Page Inheritance to subsites in a WordPress Network
- Roles other than Super admin accessing manage_network_themes
- How would I compare and remove hacks to core?
- Memory needed to host 200 wordpress sites?
- Creating multiple blogs
- Multisite Login Issues
- Multisite Conditional (if blog_id?) in a page template?
- WPMU vs WordPress MultiSite is there a difference anymore?
- Can I install a theme on only one site of a multi-site network install?
- Creating a Dev box from an existing production machine?
- Force Network Admin Dashboard to 1 column on wordpress multisite
- Shared upload folder in wordpress multisite
- WordPress multisite with different domain
- Rewrite rules in multisite
- Emailing only the users of a MultiSites Sub-Sites
- wp_logout_url isn’t forwarding to correct link
- Multiple blogs, different domain names, one install to rule them all
- Clone a wordpress website with same functionality, but different content
- Can simple Admin save options in a Multisite?
- Is there a hook or a function for multisite blog deactivate or delete?
- Stuck with WordPress Multisite Custom signup page without .htaccess modification
- wp-admin redirect loop with ssl
- wordpress multisite, https for whole site or just admin?
- Multisite network admin – URL / redirect error
- WPMU – new users are automatically subscribed to the main blog – how to prevent that?
- WordPress MU and nested sites addresses?
- Removing “Sub-menus” from My Sites Drop-down in Admin Bar
- Multi-site vs seperate installs for just 3 blogs?
- Installing WP twice in same Directory?
- Make a user administrator to a sub directory site and a contributor to main site in multisite network
- How to store custom user data on the database?
- NGINX rewrite rules for sub subdomains
- Temp URL Redirect Loop
- wordpress multisite dashboard link in admin bar
- How to configure Woocommerce Payment Methods programmatically?
- Multisite – user email activation links broken
- Multisite with subfolders- can’t access main site- Error establishing a database connection
- WP MU Register User across all blogs
- multisite subdomain behind reverse proxy
- Set default settings for all new multisites?
- How to disable a network enabled plugin on all sites, excepting on one?
- Multisite Subdirectory with same domain subdomain
- wp_mail() not sending email in multisite subdomain
- What are good approaches to routing some urls to a second WordPress install?
- Show content of other domain inside WordPress
- Moving a remote WordPress multisite installation to local
- Multisite redirecting wrong when without WWW
- Multisite, domain mapping and SSL?
- Google Apps SMTP for WP MultiSite?
- Get users registered 30 days ago(or more)
- Pull Custom /wp-admin/css for Non-Admin in Multisite
- WordPress in subdirectory, Multisite using subdomains Nginx
- WordPress Multisite with subdomains on different domains
- Is WordPress cache shared for all blogs in a multisite network?
- Display Selected themes to user in admin for wordpress multisite
- White blank page when Updating/Draft/Publishing Page/Post
- The Events Calendar: Events page as Home page [closed]
- blog change and move to anther hosting for a multisite
- How to unindex a single blog in Multisite?
- How to redirect user after session timeout
- WPMU If MU site has no administrator, deactivate site
- Questions about MU database schema and how to list all blogs
- Choosing the right kind of hosting for a WordPress multisite
- Multisite ad server solution
- Function to Load Admin CSS for Super Admin on Multisite
- Multisite Configurations
- How to update wordpress content of wordpress multi-site subdomain
- How to post same content on multisite?
- Created child theme from Themegrill Flash-Pro and the child theme is blank
- Configure redirects with web.config
- Events Calendar Multisite 404 for events
- WordPress Database Cleanup
- Multiple Languages for each subsite on a Multisite
- Whats the best Practice for using a different Theme for WebView Apps?
- Current blog is returning ID of 1 instead of users blog ID?
- Blog switch wpml string translation (multi-site)
- Multilingual multisite > customisable footer across different sites with widgets?
- Manually insert post into MULTISITE database: Need to specify the TABLE
- Transfer Part of Multisite to new Domain
- Multisite move server giving redirect loop
- Crop image sizes directly from Media Library across network (not attached to post or page but sidebar)
- Is there any way to give all users access to one blog in a multisite network without using a plugin?
- WPMU Domain not pinging
- In a loop, do not display content that does not have a thumbnail
- How to use same email for multiple users? [duplicate]
- How do I set up multisite on Digitalocean?