Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/stuttter/wp-site-cloner/archive/refs/heads/master.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Use an existing site's content to populate a new site.
WP Site Cloner allows the copying of a site's content with just 1 function.
Installation
- Download and install using the built in WordPress plugin installer.
- Activate in the "Plugins" area of your admin by clicking the "Activate" link.
- No further setup or configuration is necessary.
FAQ
Does this create new database tables?
Technically, that's the only thing that it does!
Does this modify existing database tables?
No. All of WordPress's core database tables remain untouched.
How do I use this?
Probably something like:
wp_clone_site( array(
'domain' => 'src.wordpress-develop.dev',
'path' => '/paul/',
'title' => 'Paul the Dog',
'from_site_id' => 35,
'to_network_id' => 1,
'meta' => array(
'public' => 1
)
) );
What about wp_links?
If link_manager_enabled is falsey on the source site, it will not get copied over to the new one.
Where can I get support?
The WordPress support forums: https://wordpress.org/tags/wp-site-cloner/
Can I contribute?
Yes, please!