This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Preserve MainWP Connection

Description

Preserve MainWP‘s connection details from being overwritten by WP Migrate and severing the connection when pushing or pulling.

If you use MainWP to manage your WordPress sites and WP Migrate to clone sites between environments, you’ll find that your site’s connections to MainWP are constantly being disconnected by the push/pull operations of WP Migrate. This plugin prevents the database fields used for MainWP’s connection details from being overwritten by WP Migrate during both Push and Pull operations, saving you from having to reconnect the site after every migration.

Installation

  1. Upload preserve-mainwp.php to the /wp-content/plugins/preserve-mainwp/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

FAQ

Does this plugin require any configuration?

No. It works out-of-the-box (“set and forget”) as soon as it is activated.

Which migration tools are supported?

It preserves settings for WP Migrate (formerly WP Migrate DB Pro / Delicious Brains).

Reviews

Read all 1 review

Contributors & Developers

“Preserve MainWP Connection” is open source software. The following people have contributed to this plugin.

Contributors

“Preserve MainWP Connection” has been translated into 3 locales. Thank you to the translators for their contributions.

Translate “Preserve MainWP Connection” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

2.0.0

  • Complete refactor to OOP architecture (Preserve_MainWP_Connection).
  • Expanded preserved keys to all 10 MainWP Child authentication keys (siteid, auth, connected_admin, nossl_key, openssl_sign_algo, security).
  • Added pre-migration transient backups (_preserve_mainwp_backup) on initiation hooks.
  • Added post-migration DB restoration on finalization hooks to prevent connection loss during Push migrations.

1.1.0

  • Modernized code structure and PHP 7.4+ compatibility.
  • Added support for mainwp_child_subkey option.
  • Updated WordPress and PHP version requirements.
  • Added GitHub Actions workflow for WordPress.org SVN automated deployment.

1.0

  • Initial release