Clone a demo website when new blog is created using Wordpress Multisite

强颜欢笑 提交于 2019-12-13 02:57:50

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!