bobbingwide / oik-clone

Clone content between sites
https://www.oik-plugins.com/oik-plugins/oik-clone-clone-your-wordpress-content/
GNU General Public License v2.0
5 stars 0 forks source link

Add batch facility to adjust cloned information on imported database #16

Closed bobbingwide closed 7 years ago

bobbingwide commented 7 years ago

When a cloned (target) site is imported into the source (master) then we need to be able to reset the post meta data that stores the target clone IDs, meta_key = _oik_clone_ids.

Completely emptying the entries will make re-cloning a complicated business. Each entry should be updated to reflect the current situation... that the server is up to date with respect to the master ie. for http://qw/oikcom being cloned to http://oik-plugins.com there should be one entry with id=post ID and cloned = last modified time.

bobbingwide commented 7 years ago

Other things we have to consider are:

To set up clone admin again:

To mark a post type as clonable we use oik-types

To pick the correct URL - we must pass this on the command line. e.g.

oikwp admin/class-oik-clone-reset-slave.php http://oik-plugins.com

Alternatives considered but not implemented: