Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use mucd_default_primary_tables_to_copy ? #58

Open
flarestar-xx opened this issue Jan 29, 2017 · 1 comment
Open

How to use mucd_default_primary_tables_to_copy ? #58

flarestar-xx opened this issue Jan 29, 2017 · 1 comment

Comments

@flarestar-xx
Copy link

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.

@danielmotaleite
Copy link

danielmotaleite commented Apr 24, 2018

+1 to this

there is this reference, but looks like it is for people that know how to program with wordpress... other people have no idea how to do step.

Please add some example how to use this feature!

After search for many time, i found this, that i suspect we must add to the theme function.php... but haven't tested yet:

https://wordpress.org/support/topic/using-mucd_default_primary_tables_to_copy/

Notice that the tables names are without wp_ like prefix

function mucd_primary_table_to_copy($primary_tables) {
    $primary_tables[] = 'addonlibrary_addons';
    $primary_tables[] = 'addonlibrary_categories';
    $primary_tables[] = 'bp_activity';
    $primary_tables[] = 'bp_activity_meta';
    $primary_tables[] = 'bp_notifications';
    $primary_tables[] = 'bp_notifications_meta';
    $primary_tables[] = 'bp_xprofile_data';
    $primary_tables[] = 'bp_xprofile_fields';
    $primary_tables[] = 'bp_xprofile_groups';
    $primary_tables[] = 'bp_xprofile_meta';
    return $primary_tables;
}

add_filter('mucd_default_primary_tables_to_copy', 'mucd_primary_table_to_copy');

@flarestar-xx please rename the ticket to "how to use mucd_default_primary_tables_to_copy", so it is easier to understand

@davddo davddo changed the title How is this done? how to use mucd_default_primary_tables_to_copy ? May 16, 2018
@davddo davddo changed the title how to use mucd_default_primary_tables_to_copy ? How to use mucd_default_primary_tables_to_copy ? May 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants