reineskye25
Member
Posted 10 months ago #
Hi, does WP supports different/multiple sites using 1 users table? If yes, can someone kindly give me an idea how to do that? We are required to build 3 different websites but users who register for any 1 site needs also to be registered for all the other sites automatically. So my idea is to use only 1 wp_users table. But how can i do that?? Thanks in advance for ur help/response :)
maxlapides
Member
Posted 10 months ago #
Although I've never done this personally, I believe it's accomplished without too much difficulty by making use of WordPress's now-integrated multisite features.
For information regarding "Creating a Network," check this out: http://codex.wordpress.org/Create_A_Network
Also, this snippet from the Codex seems to answer your question directly:
You can use the same userbase with all your blogs on the same domain, by defining the CUSTOM_USER_TABLE and optionally the CUSTOM_USER_META_TABLE constants to point to the same wp_your_blog_usermeta and wp_your_blog_users tables. See Editing wp-config.php/Custom User and Usermeta Tables. You will need the WP-Orphanage plugin to automatically set user roles at all blogs.
http://codex.wordpress.org/Installing_Multiple_Blogs#Multiple_Databases.2C_Same_Users
reineskye25
Member
Posted 10 months ago #
Thanks for your response sir :) I will try your suggestion :) Thanks again! :)