问题
I am presently working on a Wordpress multisite. Users can create a website by themselves, so there's no assistance from the admin on doing that.
When the user signs up, after they login, they can create a new website. Now, when they click the create button, I already have a demo website named demo.mywebsite.com
. I want this website to be cloned for the new site created. So, when the user names the website fabrics, the site URL would be fabrics.mywebsite.com
My question is, how do I set-up the site so when a user creates a new website it automatically clones the demo website? Please, note that this happens at the frontend. I have seen a couple of plugins that allows the user to clone the website when on the dashboard, but in this scenario, it should happen automatically when the user creates the website from his frontend. The users are BuddyPress users.
来源:https://stackoverflow.com/questions/58975413/clone-a-demo-website-when-new-blog-is-created-using-wordpress-multisite