Sharing plugin tables between 2 sites
-
Hello!
I actually have 2 subdomains sharing the same database, but both with different database prefixes. Subdomain A has prefix abtf_ for its tables and subdomain B has prefix klmn_ for its tables. They both share the users, and the userdata, the keys, and cookies via the wp-config.php file. I made the needed changes in both configuration files and both wordpress installations work pretty fine. But my headeache comes when I try to make them share the plugin’s tables.
I’m not using the multisite feature, and I would like not to use it for this.
I want both installations of a plugin to use the same database tables, and I don`t know really how to do it, I’ve been researching for days, I tried to do something similar as I did in the wp-config.php for linking both sites, but didn’t work, I tried by building an alternative wp-config.php just for the plugin, and testing inside the plugin files to make it read the alternative wp-config.php, I tried to define custom constants inside wp-config…
I’m totally lost. If someone could give me a hand, I would really appreciate it.
Thank you in advance!
- The topic ‘Sharing plugin tables between 2 sites’ is closed to new replies.