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
- How to change product SKU’s in bulk with a plugin
- Edit tag cloud widget number
- get product attributes for current product and store it in a variable
- How to use update and delete query in wordpress
- add_meta_boxes action with refresh on save
- Hide a menu-item and its submenus and display a ‘Log in’ link if the user is logged out
- How to get Woocommerce Variation ID? [closed]
- Add product tag names to WooCommerce new order email subject
- Custom plugin issue when trying to use the shortcode twice on a page [closed]
- How to display product cropped thumbnail (150×150) for WooCommerce product categories
- Add to checkout total lines an additional line below shipping in WooCommerce
- How To Change The Html of Products filtration sidebar in Woocommerce?
- How To add custom radio boxes to WooCommerce Billing page and change total price by this field?
- WooCommerce: update custom fields after checkout validation failure
- Trigger Woocommerce New User Email
- Hiding WordPress Plugin Source Code
- My Own layout in WooCommerce pages [closed]
- Woocommerce – remove product from category
- Add the Name of Products Ordered to Admin New Order Email WooCommerce
- get current product name in functions.php
- Get WooCommerce product details and transfer them to a custom DB table
- Custom filter in admin edit custom post type responding with invalid post type?
- How to access global variable $menu inside a class function
- Custom user login page by creating a plugin
- Woocommerce product variation backorder
- Status 400 for AJAX POST Request with admin-ajax.php
- Singelton class does not work, multiple initialization on page reload
- How to upload a file to a folder named after the user_id via plugin
- WooCommerce Webhooks not firing because of error in wp-includes/meta.php
- developing a wordpress plugin, have a few PHP Woocommerce related coding questions
- Whitelisting items from custom options page
- Add_menu_page not displaying the menu in class based plugin
- Creating a Callback URL for WordPress Woocommerce to update Order Status
- WooCommerce: How can I get orders with a custom ID in order meta data object?
- adjust section according to country?
- Sum the total amount of a specific product purchased per user and display in table
- how to update and display an option without reloading the page
- echo something inside a shortcode
- 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()?
- Changing the order of custom fields in the dashboard for Woocommerce variable products [closed]
- woocommerce wc_create_order(); is creating multiple orders instead of one?
- Using admin-post.php for admin form but it directs me to admin-post.php white screen
- How can I display Custom Post type Custom Columns and its Content in a Dashboard Widget?
- custom plugin with upload files does not work
- send popup after wp_redirect()
- no_rest_route error on custom routes
- Hide specific product from Woocommerce if the logged-in user has already enrolled into the course
- Convert a column of a table containing an Array as response in HTML
- 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
- Add to cart quantity dynamic
- 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
- Woocommerce textarea format ignored
- Autoloading Classes in Plugins
- How to limit functionality of a woocommerce plugin to only certain user role?
- Sort WooCommerce data with WP-CRON?
- Display specific main Sub Nav on Woocommerce product pages
- Use PHP code in Menu Admin Section
- 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’
- 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