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 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!
-
Hi there!
Your question is more suited for the WordPress.org community forum at this link: https://wordpress.org/support/forums/
On this forum, we help with managed WordPress.com sites, which are different from self-hosted WordPress.org ones. You can learn more about the differences here:
WordPress is a publishing platform that makes it easy for anyone to publish online and proudly powers millions of websites. This guide explains the differences between WordPress.com vs. WordPress.org to help you decide which one is best for you. Overview of Options Using WordPress comes in three flavors: Fully hosted with WordPress.com. WordPress.com with an upgraded plan that allowHope that helps!
-
Thank you Aisajib, I already posted my question there too, I’m also looking and seeking for help at other wordpress developing forums where I can post my issue. No luck for now.
- The topic ‘Sharing plugin tables between 2 sites’ is closed to new replies.
