简体   繁体   中英

How to connect two database of different wordpress sites?

I am having two different sites based on wordpress. I want to give access to the users to both the sites even if they sign-up on any of one.

Example:

If user xyz sign-up for example1.com then user's data must be stored in both website's data-base example1.com and example2.com so user don't need to sign-up for example2.com if he has sign-up in example1.com and vice-versa.

So how can I connect this data-base with each other?

If user sign-up in example1.com then fields of data-base in wordpress having table wp_user by default should receive that information of user in both sites.

In short, I want to connect data-base of both sites having table wp_user.

您可以为所有站点创建一个公用数据库,并将其与各个站点连接,以便它可以存储信息并可以与所需的任何站点一起使用。

There are many SSO solutions available for Wordpress, including your scenario.

Checkout: http://wordpress.org/extend/plugins/tags/single-sign-on http://wordpress.org/extend/plugins/tags/sso

Try this plugin: https://github.com/voceconnect/wp-multisite-sso

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM