Support » Plugin: MultiSite Clone Duplicator » Duplicating primary site

  • The description states:

    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

    Yet, for something so precarious, this is by far insufficient to describe the steps to take. The question has recently been asked in this forum, but has not been replied to.

    How, exactly, should this be hooked in order to avoid obliterating the primary site?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author David Daugreilh



    Here is an exemple to how to use mucd_default_primary_tables_to_copy filter.
    In your theme’s functions.php file :

    function exemple_mucd_primary_table_to_copy($primary_tables) {
        $primary_tables[] = 'ma_table_1';
        $primary_tables[] = 'ma_table_2';
        $primary_tables[] = 'ma_table_3';
        return $primary_tables;
    add_filter('mucd_default_primary_tables_to_copy', 'exemple_mucd_primary_table_to_copy');

    Do not define database prefix in tables name

    I hope this will help you.

    Best regards,

    Should I use this code all as it is, or do you mean that I should replace “ma_table_*” with something?

    Plugin Author David Daugreilh


    You have to replace ‘ma_table_*’ with your own tables names you want to duplicate.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Duplicating primary site’ is closed to new replies.