WordPress.org

Ready to get started?Download WordPress

Forums

Making a plugin multi site compatible? (2 posts)

  1. Paal Joachim Romdahl
    Member
    Posted 1 year ago #

    Hey

    I am helping the developer of the Duplicator with various testing etc.
    http://wordpress.org/extend/plugins/duplicator/

    The plugin works great with single installs, but not yet with multisite.
    The developer is busy with the existing plugin and improving it and needs some help in figuring out how to go about making the plugin multisite compatible. Actually he needs help doing so.

    So if you are able to chip in and suggest ways to make it compatible that would be great. (Perhaps even test it out) The Duplicator is an awesome plugin and it would be very nice to also be able to backup/restore a multisite and/or subsites with it.

    Are there some general guidelines in making a single site plugin compatible with a multisite install?

  2. scribu
    Member
    Posted 1 year ago #

    If you're making direct SQL queries, make sure to use $wpdb->posts instead of 'wp_posts'.

    If you need to get a list of DB tables for a single blog, try using $wpdb->tables() instead of 'SHOW TABLES'.

    Other than that, there is no magic bullet for making a plugin multi-site compatible, especially for a backup/migration plugin like Duplicator.

Topic Closed

This topic has been closed to new replies.

About this Topic