Support » Plugin: MultiSite Clone Duplicator » Using: mucd_default_primary_tables_to_copy

Viewing 6 replies - 1 through 6 (of 6 total)
  • I have the same question. I want to clone my primary site. How to do this?

    Same here..

    Hey, I just cloned primary site with this plugin. Looks good so far!

    I’m also interested how to use this ;]

    Had to dig for this. Bizarre not to explain the use of the plugin’s hooks. Here is an example. It will go in your theme’s functions.php file:

    function mucd_primary_table_to_copy($primary_tables) {
        $primary_tables[] = 'frm_fields';
        $primary_tables[] = 'frm_forms';
        $primary_tables[] = 'frm_items';
        $primary_tables[] = 'frm_item_metas';
        return $primary_tables;
    add_filter('mucd_default_primary_tables_to_copy', 'mucd_primary_table_to_copy');


    Hi Adam,
    I want to use your example above to clone my primary site and i appreciate your answer:

    1. Is your code ready to use or should i edit it according to my tables names?
    2. Should i add the code to function.php file of child theme or to parent theme?

    • This reply was modified 5 years, 6 months ago by yanivtevel. Reason: Tags
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Using: mucd_default_primary_tables_to_copy’ is closed to new replies.