Connecting databases | WordPress.org

[ad_1]

Hello,

How can we make multiple SliceWP installations on different websites use a single database? Ex. let’s say we have site1, site2, and site3 with different addresses and databases that all have SliceWP installed on them. What we are looking for is connecting all SliceWP installations on different websites and make them use the database of one website. So, each website still has its own database except the SliceWP part of the site that is connected to the SliceWP database of one site. This way the data of the SliceWP on all websites is the same.

There are multiple approaches to do this like using API, etc. But, connecting all plugins to one DB is the fastest and less resource hungry solution. So, we chose to do that.

Also, I understand that the logic for such action is finding the functions that establishes the db connections and interactions with it. But, I opened this topic so you who are the most familiar person with the plugin can give us a hint about the files and functions that are involved.

Basically, I’m trying to develop an additional plugin that changes the path to the database for SliceWP without overriding the original codes.

Thank you

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer