I have a Multisite installation created in WordPress hosted at example.com
with websites at example.com/site1
, example.com/site2
etc.
Is it possible to create an exact copy of example.com
at example.com/site3
?
Blog Copier and NS cloner don’t allow you to ever create a copy of the root site for some reason. What would the technical limitations behind this be?
Yes, it is possible. This is the feature I wrote during the last days for the pro version of Multilingual Press.
One problem is that
wp_upload_dir()
does not always return the correct values after callingswitch_to_blog()
, that makes attachment copies unnecessary difficult. Besides that most things are simple.TRUNCATE
the new blogâs tables and replace them with the content of the source blog, then update the values which are different.Things get tricky when you need new relationships between some selected blogs, but all that is not special for the root site.