I have two WordPress installs. One is a subdomain (Blog 2) and the other is the root domain (Blog 1). All tables are installed in same database. I am already sharing the users table, but am also trying to share a few plugin created database tables. Is this possible?

I used the following code in my wp-config to share the user tables:


Is there a similar code to share plugin tables between sites?


I realized that all you have to do is find where the database is returned (in my case it is wp-init.php) and change the prefix to reflect the shared database:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.