1

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:

define(CUSTOM_USER_TABLE,'wp_users');
define(CUSTOM_USER_META_TABLE,'wp_usermeta');

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

0

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:

$wpdb->prefix="wp_";

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.