I don’t know if is the best way to do this but aparently works well.
I override the users table adding one with an blog_id field as key.
Add an “wp_pre_insert_user_data” filter to set the blog_id field and change the user id to some like “blog_id000user_id” (100044 for example is from blog 1).
Override the core “get_user_by” function to another, calling a custom “get_data_by” functions instead of the wordpress user method. This new function search the user table by blog_id and allow the admins and the site clients to connect.
Related Posts:
- Use wc_enqueue_js only on specific pages – nested add_action
- woocommerce subscriptions – get expiration date [closed]
- Automated Cart Update With Alert Box Each Time
- WooCommerce/WordPress: how hide entire table form after submit (Admin Dashboard)?
- How to auto fetch customer details in Woocommerce in checkout page
- I want to add custom add to cart link [closed]
- Extend Woocommerce Widget Class – WC_Widget_Product_Categories
- Change product_base programmatically
- Can a plugin redirect product page based on IF condition?
- WordPress WP_Query without query GET parameters
- Where to copy woocommerce files to in my custom theme to avoid editing the core plugin?
- custom post type with role Vendor
- Woocommerce custom Plugin in wordpress [closed]
- Add a custom WooCommerce settings tab with sections
- Payment field disappears on custom Paypal plugin
- I am having errors with checkout on wordpress
- product_type_options get saved value [closed]
- How can I update the price when someone enters postcode or zip code in woocommerce checkout page?
- Looping through and combining calls to Woocommerce REST API
- How to import woocommerce custom fields data into another site?
- How do I remove an action hook inside a class that is called by another class?
- Custom field fetch error on woocommerce pdf invoice
- Woocommerce Convert existing order to the cart
- Should I use spl_autoload_register() in my plugin?
- How can I save a multiple select array with the settings API for a plug-in options page?
- Is there a way for a plugin to add an attribute to the tag of a theme?
- How to add date range in woocommerce with code
- Gutenberg Blocks doesn’t render correctly when using do_blocks
- How to Remove a Filter from the Admin List Table?
- Woocommerce, recognize the loop of related products
- Remove commas from WooCommerce checkout addresses fields
- My shortcode is showing up twice
- Database “Migration” for Plugins?
- WooCommerce Link to Product Category
- Output a WooCommerce product custom field in WooCommerce using get_post_meta()
- Append a term to WooCommerce product existing product category terms
- using woocommerce_template_single_add_to_cart in shop-loop – javascript issues [closed]
- Does wp-cron runs all tasks scheduled at same time together or one after other?
- Making Quote Plugin more efficient
- Woocommerce – Filter Variable Products by Variation Attributes and Variations Regular Price
- Will simple function names in a class structure conflict with other plugins?
- How to test nonce with AJAX – Plugin development
- WooCommerce Related Products by Attribute
- Image as Sales Badge
- How can i upload images in an admin page?
- Modify HTML structure of fields in woocommerce checkout form
- Retrieve $_POST data submitted from external URL in WordPress(NOT API)
- Reprinting tags with all attributes
- Update results, Before deleting the related category [closed]
- How can I get the values of my WordPress $wpdb query in Jquery?
- Trouble checking if custom woocommerce checkout field is empty or not
- Adding function to Genesis genesis_header [closed]
- how to update and display an option without reloading the page
- echo something inside a shortcode
- Plugin Generate Unexpected output during activation
- Hook called before text widget save
- wpdb prepare insert table doesn’t work
- require_once() if a product in woocommerce contains a tag [closed]
- How to display SQL query that ran in WC_Order_Query?
- How to disable delivery on certain date at checkout page in WooCommerce?
- How do I change this function from two returns to one string to show sku and dimensions in WooCommerce cart?
- Call WC_Product get_price()?
- Using admin-post.php for admin form but it directs me to admin-post.php white screen
- custom plugin with upload files does not work
- What is the difference between Null vs Empty (Zero Length) string?
- send popup after wp_redirect()
- no_rest_route error on custom routes
- How to work Woocommerce pagination inside shortcode?
- Convert a column of a table containing an Array as response in HTML
- Create ACF Checkbox to get all ACF Values from Parent Page
- Billing detail page doesn’t work after I’ve changed the order of the Woocommerce navigation
- Change the URL of an image from wp_get_attachment_image_src for Product Posts based on Category
- Combine change Email WordPress and woocommerce emails template
- Woocommerce Product page add on checkbox and price
- How to set Nav as a default menu in wordpress
- Display a custom name when the user has no name settle in his account
- Woocommerce – get daily sales meta
- Custom woocommerce payment gateway – Form
- Discount in the specific product title using keyword ( Woocoommerce )
- Place product field value as variable in php
- Sum All the Post Meta of Published posts of Current Logged in user
- Autoloading Classes in Plugins
- Put a span class in the shortened product title
- Add missing alt tag to featured images for “storefront” theme
- Sort WooCommerce data with WP-CRON?
- Display specific main Sub Nav on Woocommerce product pages
- Comparing Dates within plugin using PHP If statement
- Need Quick Help With Product Category Page
- Singleton plugin activation; create database
- How to set up and use a custom upload directory for post type ‘product’
- How to get the rating value of each comment
- ACF | WooCommerce | Theme Development | How to include a /template-part/ that makes use of ACF’s on a custom WooCommerce homepage?
- Woocommerce – Shipping tax class based on cart items not using the highest tax available
- How do I update product shipping using PHP in WooCommerce?
- How can I edit the WooCommerce Mini DropDown Cart to read as follows
- base64_encode conflict with convert_smilies in wordpress
- Properly process a custom WP REST API request (Authenticate, Authorize + Validate)?
- WooCommerce Checkout Cart [closed]
- WordPress REST API – Custom field not added to pages
- Woocommerce – add tracking code to another email template