Plugin / MultiSite Clone Duplicator
Julien OGER, Pierre DARGHAM, David DAUGREILH, GLOBALIS media systemsDescription
Description
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
Features:
- Clones any site of your wordpress multisite installation
- Copies all posts and settings
- Generates log files (if option is checked)
- Copy all files from duplicated site (if option is checked)
- Keep users and roles from duplicated site (if option is checked)
- Configure which site is clonable (so you can define an unique “pattern” site)
- Fully hookable
- Command line ready (provides a WP-CLI subcommand)
Hooks
Action : mucd_before_copy_files / mucd_after_copy_files
Action before / after copying files
Args :
- Int : from_site_id
- Int : to_site_id
Action : mucd_before_copy_data / mucd_after_copy_data
Action before / after copying data
Args :
- Int : from_site_id
- Int : to_site_id
Action : mucd_before_copy_users / mucd_after_copy_users
Action before / after copying users
Args :
- Int : from_site_id
- Int : to_site_id
Filter : mucd_copy_blog_data_saved_options
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 :
- Array of string : option_name
Filter : mucd_default_fields_to_update
Filter fields to scan for an update after data copy
Args :
- Array of ( ‘table_name’ => array(‘field_1’, ‘field_2’ …));
Filter : mucd_default_primary_tables_to_copy
Filter tables to duplicate when duplicated site is primary site
Args :
- Array of string table_name
Filter : mucd_copy_dirs
Filter directories and files you want to copy
Args :
- Array of string : dirs
- Int : from_site_id
- Int : to_site_id
Filter : mucd_string_to_replace
Filter which strings we want to replace during update
Args :
- String : string_to_replace
- Int : from_site_id
- Int : to_site_id
WP-CLI arguments
Arguments are :
wp site 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>]<h3>Thank’s</h3>
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
Ratings
Rating breakdown
Details Information
Version
First Released
Total Downloads
Wordpress Version
Tested up to:
Require PHP Version:
Tags
Contributors
Languages
The plugin hasn't been transalated in any language other than English.
DIRECTORY DISCLAIMER
The information provided in this THEME/PLUGIN DIRECTORY is made available for information purposes only, and intended to serve as a resource to enable visitors to select a relevant theme or plugin. wpSocket gives no warranty of any kind, express or implied with regard to the information, including without limitation any warranty that the particular theme or plugin that you select is qualified on your situation.
The information in the individual theme or plugin displayed in the Directory is provided by the owners and contributors themselves. wpSocket gives no warranty as to the accuracy of the information and will not be liable to you for any loss or damage suffered by you as a consequence of your reliance on the information.
Links to respective sites are offered to assist in accessing additional information. The links may be outdated or broken. Connect to outside sites at your own risk. The Theme/Plugin Directory does not endorse the content or accuracy of any listing or external website.
While information is made available, no guarantee is given that the details provided are correct, complete or up-to-date.
wpSocket is not related to the theme or plugin, and also not responsible and expressly disclaims all liability for, damages of any kind, arising out of the use, reference to, or reliance on, any information or business listed throughout our site.