Same users for domain and Woocommerce-powered subdomain
-
Hi, one question.
I have a WP-based website at www.mydomain.com.
Then I have WP-based Woo-commerce powered website at mysubdomain.mydomain.com.Their databases live on two completely different hosts.
Users are registered only through the main website (not the subdomain) but I want them to login with the same credentials in the Woocommerce-powered subdomain.
I thought to do the following: using a cronjob, any night I dump the wp_users table of the main website, I drop the wp_users table in the subdomain and I replace it with the wp_users table of the main website.
Is this wrong? Is this enough? Are there any side effects? Should I consider other things (eg. other tables)?
P.S.: multisite is not an option
- The topic ‘Same users for domain and Woocommerce-powered subdomain’ is closed to new replies.