Name: multisite-clone-duplicator
Owner: Human Made
Description: WordPress plugin : Clones an existing site into a new one in a multisite installation : copies all the posts, settings and files
Created: 2018-05-22 13:57:49.0
Updated: 2018-05-22 14:16:29.0
Pushed: 2018-05-22 14:16:27.0
Homepage: null
Size: 544
Language: PHP
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Clones an existing site into a new one in a multisite installation : copies all posts, settings and files
MultiSite Clone Duplicator adds a “Duplicate Site” functionality to your network installation.
It allows you to clone any site of your network into a new one : all data, files, users and roles can be copied.
It is useful when you want to create multiple sites from the same template : Don't waste your time copying the same configuration again and again !
Simple and user-friendly, this plugin extends WordPress core network's functionalities without polluting the dashboard.
WARNING : If you clone the primary site, you must use `mucd_default_primary_tables_to_copy
` filter to declare plugins and custom database tables, or your cloned site won't be complete
You can install MultiSite Clone Duplicator using the built in WordPress plugin installer. It?s easy, 2 seconds.
If you prefer download MultiSite Clone Duplicator manually :
` multisite-clone-duplicator/
to the ``
/wp-content/plugins/ ``` directory` Chmod 777
` the logs/ directory of the plugin, if you want to activate logsIn the future, you'll probably want to create a dedicated “template” blog to clone from.
Yes, it supports both !
Yes you can, but you want to be careful : WordPress saves network tables and primary blog tables with the same prefix, and some of their data are mixed. It forces us to restrict primary blog cloning to copy only the default wp tables. If you want to change this (for example, include your plugin tables in the cloning), use mucd_default_primary_tables_to_copy filter. In the future, you want probably not to copy again and again the primary blog : use a “template” blog dedicated to clonage instead.
Yes it does !
It's not a problem ! Serialized data are understood by the plugin, recursively unserialized, replaced with appropriate values, and serialized again.
Check your host / server configuration : you probably cloned your site into a domain that is not available !
Install WP-CLI, go to your wordpress multisite directory, and type
li site duplicate --source=<id_of_the_site_to_clone> --slug="<slug_of_the_new_site>"
Arguments are :
ite duplicate --slug=<slug> --source=<site_id> [--title=<title>]
-email=<email>] [--network_id=<network-id>] [--private] [--porcelain] [--v]
-do_not_copy_files] [--keep_users] [--log=<dir_path>]
As of now, following languages are supported : English (en_US), French (fr_FR), Spanish (es_ES), Lithuanian (lt_LT) and Greek (el). If you wish to, you can translate the interface in your own language in the standard WordPress way or with Transifex
Globalis media systems is a web IT consulting company based in Paris, and a pioneer of the PHP and LAMP platform. Since 1997, we have been designing, making and maintaining Internet, intranet or mobile software. We have been working with open source CMS since 2000 and have regularly been using WordPress since 2007.
Screenshots on wordpress.org
Action before / after copying files
Args :
Action before / after copying data
Args :
Action before / after copying users
Args :
Filter args to retrieves a list of network sites (function get_site_list) Args :
Filter args to retrieves a list of network sites (function get_sites) Args :
Filter options that should be preserved in the new blog (original values from created blog will not be erased by copy of old site's tables)
Args :
Filter fields to scan for an update after data copy
Args :
Filter tables to duplicate when duplicated site is primary site
Args :
Filter directories and files you want to copy
Args :
Filter which strings we want to replace during update
Args :
Arguments are :
ite duplicate --slug=<slug> --source=<site_id> [--title=<title>]
-email=<email>] [--network_id=<network-id>] [--private] [--porcelain] [--v]
-do_not_copy_files] [--keep_users] [--log=<dir_path>]
The original version of this plugin has been developed by Julien OGER who keeps following the project carefully.
Some code for search and replace in SQL serialised data were initialy taken from Lionel Pointet Wordpress Migration tool