Title: Preserve MainWP Connection
Author: Jay Holtslander
Published: <strong>10 Tháng 5, 2020</strong>
Last modified: 2 Tháng 10, 2026

---

Tìm kiếm plugin

![](https://ps.w.org/preserve-mainwp/assets/banner-772x250.jpg?rev=3723800)

![](https://ps.w.org/preserve-mainwp/assets/icon-256x256.jpg?rev=3723800)

# Preserve MainWP Connection

 Bởi [Jay Holtslander](https://profiles.wordpress.org/jasonh1234/)

[Tải về](https://downloads.wordpress.org/plugin/preserve-mainwp.2.0.1.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/preserve-mainwp/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/preserve-mainwp/#reviews)
 *  [Cài đặt](https://vi.wordpress.org/plugins/preserve-mainwp/#installation)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/preserve-mainwp/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/preserve-mainwp/)

## Mô tả

Preserve [MainWP](https://mainwp.com/)‘s connection details from being overwritten
by [WP Migrate](https://deliciousbrains.com/wp-migrate-db-pro/) 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.

## Cài đặt

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

## Hỏi đáp

### 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).

## Đánh giá

![](https://secure.gravatar.com/avatar/ec4fedd5566ded7d79d0a05de2f2bd88561abf4e8205af40c113e30200ff7be6?
s=60&d=retro&r=g)

### 󠀁[Works great!](https://wordpress.org/support/topic/works-great-7264/)󠁿

 [skunkworks](https://profiles.wordpress.org/skunkworks/) 17 Tháng 11, 2020

Use it on all sites now.

 [ Đọc tất cả 1 đánh giá ](https://wordpress.org/support/plugin/preserve-mainwp/reviews/)

## Người đóng góp & Lập trình viên

“Preserve MainWP Connection” là mã nguồn mở. Những người sau đã đóng góp vào plugin
này.

Những người đóng góp

 *   [ Jay Holtslander ](https://profiles.wordpress.org/jasonh1234/)

“Preserve MainWP Connection” đã được dịch qua 3 ngôn ngữ. Cảm ơn [những người tham gia dịch](https://translate.wordpress.org/projects/wp-plugins/preserve-mainwp/contributors)
vì đóng góp của họ.

[Dịch “Preserve MainWP Connection” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/preserve-mainwp)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/preserve-mainwp/), check
out [SVN repository](https://plugins.svn.wordpress.org/preserve-mainwp/), hoặc theo
dõi [nhật ký phát triển](https://plugins.trac.wordpress.org/log/preserve-mainwp/)
qua [RSS](https://plugins.trac.wordpress.org/log/preserve-mainwp/?limit=100&mode=stop_on_copy&format=rss).

## Nhật ký thay đổi

#### 2.0.1

 * Updated Tested up to tag to WordPress 7.1.
 * Added pre-bundled translation files (.po / .mo) for 10 languages.

#### 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

## Meta

 *  Phiên bản **2.0.1**
 *  Cập nhật lần cuối **1 tuần trước**
 *  Số lượt cài đặt **100+**
 *  Phiên bản WordPress ** 5.6 hoặc cao hơn **
 *  Đã kiểm tra lên đến **7.1.3**
 *  Phiên bản PHP ** 7.4 hoặc cao hơn **
 *  Ngôn ngữ
 * [Dutch](https://nl.wordpress.org/plugins/preserve-mainwp/), [English (US)](https://wordpress.org/plugins/preserve-mainwp/),
   [Spanish (Chile)](https://cl.wordpress.org/plugins/preserve-mainwp/), và [Spanish (Spain)](https://es.wordpress.org/plugins/preserve-mainwp/).
 *  [Dịch sang ngôn ngữ của bạn](https://translate.wordpress.org/projects/wp-plugins/preserve-mainwp)
 * Thẻ
 * [database](https://vi.wordpress.org/plugins/tags/database/)[MainWP](https://vi.wordpress.org/plugins/tags/mainwp/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/preserve-mainwp/advanced/)

## Đánh giá

 5 trên 5 sao.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/preserve-mainwp/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/preserve-mainwp/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/preserve-mainwp/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/preserve-mainwp/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/preserve-mainwp/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/preserve-mainwp/reviews/#new-post)

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/preserve-mainwp/reviews/)

## Những người đóng góp

 *   [ Jay Holtslander ](https://profiles.wordpress.org/jasonh1234/)

## Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/preserve-mainwp/)