I am currently working on two WordPress installations with the PointFinder theme. One is the main website (website A), whereas the other is a sub website accessible through the main website (website B).
The goal is, that the website A shares it's user information (users
, usermeta
, comments
) with website B.
Website A
|_ Website B (this one should access the user info from website A)
I already studied the database schema and some of the php files. Theoretically, I could define a second database connection in 'wp-config.php' and point every call to the users
, usermeta
and comments
tables within the website B's php files to the database from website A.
But this seems quite extensive and error-prone. Any other ideas how to solve this issue?
UPDATE/SOLUTION:
As codiiv
proposed in his answer below, sharing user/meta data between different WP sites is quite easy. Don't forget to add the script that updates the missing user roles when new users are added. Here's the most comprehensive link I found: