From d7fcec292bcbf693177473c792f39170399caade Mon Sep 17 00:00:00 2001 From: ajayadav09 Date: Tue, 23 Apr 2024 20:13:55 +0530 Subject: [PATCH 1/9] added email templates --- .../bluehost_site_transfer_completed.html | 85 ++++++++++++++++++ .../bluehost_site_transfer_failed.html | 87 +++++++++++++++++++ .../bluehost_site_transfer_started.html | 84 ++++++++++++++++++ .../hostgator_site_transfer_completed.html | 85 ++++++++++++++++++ .../hostgator_site_transfer_failed.html | 85 ++++++++++++++++++ .../hostgator_site_transfer_started.html | 84 ++++++++++++++++++ 6 files changed, 510 insertions(+) create mode 100644 emailtemplates/bluehost_site_transfer_completed.html create mode 100644 emailtemplates/bluehost_site_transfer_failed.html create mode 100644 emailtemplates/bluehost_site_transfer_started.html create mode 100644 emailtemplates/hostgator_site_transfer_completed.html create mode 100644 emailtemplates/hostgator_site_transfer_failed.html create mode 100644 emailtemplates/hostgator_site_transfer_started.html diff --git a/emailtemplates/bluehost_site_transfer_completed.html b/emailtemplates/bluehost_site_transfer_completed.html new file mode 100644 index 0000000..6bb7721 --- /dev/null +++ b/emailtemplates/bluehost_site_transfer_completed.html @@ -0,0 +1,85 @@ + + + + + + + + + + + Email title + + + + +
+ + + + +
+ + + + +
+
+ +
+
+ + + + + +
+ Bluehost Logo + + Account Login +
+
+
+

Site Transfer Complete

+

Thanks for choosing Bluehost to support your online needs.

+

Your site has been successfully transferred!

+

Click on the button the below to view your site and double-check that everything is how it should be.

+

Sincerely,

+

Bluehost Customer Support

+
+
+

View your new website

+

{{Site URL}}

+
+ Go to your site +
+
+

Copyright ©️ 2024 All Right Reserved. Bluehost, 5335 Gate Pkwy, Jacksonville, FL 32256

+

Terms of Service | Privacy Notice

+
+
+
+
+
+
+ + diff --git a/emailtemplates/bluehost_site_transfer_failed.html b/emailtemplates/bluehost_site_transfer_failed.html new file mode 100644 index 0000000..52574e5 --- /dev/null +++ b/emailtemplates/bluehost_site_transfer_failed.html @@ -0,0 +1,87 @@ + + + + + + + + + + + Email title + + + + + +
+ + + + +
+ + + + +
+
+
+
+ + + + + +
+ Bluehost Logo + + Account Login +
+
+
+

Site Transfer Failed

+

Thanks for choosing Bluehost to support your online needs.

+

Unfortunately, we were unable to successfully complete the transfer of your site.

+

Please contact our support team for more details and for additional migration assistance as we work to resolve this issue.

+

Sincerely,

+

Bluehost Customer Support

+
+
+

Get help with your transfer

+

Our team of experts is available 24/7.

+
+

Call 888-401-4678

+
+
+

Copyright ©️ 2024 All Right Reserved. Bluehost, 5335 Gate Pkwy, Jacksonville, FL 32256

+

Terms of Service | Privacy Notice

+
+
+ +
+
+
+ + + diff --git a/emailtemplates/bluehost_site_transfer_started.html b/emailtemplates/bluehost_site_transfer_started.html new file mode 100644 index 0000000..2113825 --- /dev/null +++ b/emailtemplates/bluehost_site_transfer_started.html @@ -0,0 +1,84 @@ + + + + + + + + + + + Email title + + + + +
+ + + + +
+ + + + +
+
+ +
+
+ + + + + +
+ Bluehost Logo + + Account Login +
+
+
+

Site Transfer Started

+

Thanks for choosing Bluehost to support your online needs.

+

We are writing to let you know that your site transfer has begun!

+

We are currently copying all of your files, content and data to your Bluehost account. You may check the progress of the transfer by clicking the button below.

+

Sincerely,

+

Bluehost Customer Support

+
+
+

View the progress of your site transfer

+
+ Site Transfer Progress +
+
+

Copyright ©️ 2024 All Right Reserved. Bluehost, 5335 Gate Pkwy, Jacksonville, FL 32256

+

Terms of Service | Privacy Notice

+
+
+
+
+
+
+ + diff --git a/emailtemplates/hostgator_site_transfer_completed.html b/emailtemplates/hostgator_site_transfer_completed.html new file mode 100644 index 0000000..ee6a768 --- /dev/null +++ b/emailtemplates/hostgator_site_transfer_completed.html @@ -0,0 +1,85 @@ + + + + + + + + + + + Email title + + + + +
+ + + + +
+ + + + +
+
+ +
+
+ + + + + +
+ Hostgator Logo + + Account Login +
+
+
+

Site Transfer Complete

+

Thanks for choosing Hostgator to support your online needs.

+

Your site has been successfully transferred!

+

Click on the button the below to view your site and double-check that everything is how it should be.

+

Sincerely,

+

Hostgator Customer Support

+
+
+

View your new website

+

{{Site URL}}

+
+ Go to your site +
+
+

Copyright ©️ 2024 All Right Reserved. Hostgator, 5335 Gate Pkwy, Jacksonville, FL 32256

+

Terms of Service | Privacy Notice

+
+
+
+
+
+
+ + diff --git a/emailtemplates/hostgator_site_transfer_failed.html b/emailtemplates/hostgator_site_transfer_failed.html new file mode 100644 index 0000000..adabfe0 --- /dev/null +++ b/emailtemplates/hostgator_site_transfer_failed.html @@ -0,0 +1,85 @@ + + + + + + + + + + + Email title + + + + +
+ + + + +
+ + + + +
+
+ +
+
+ + + + + +
+ Hostgator Logo + + Account Login +
+
+
+

Site Transfer Failed

+

Thanks for choosing Hostgator to support your online needs.

+

Unfortunately, we were unable to successfully complete the transfer of your site.

+

Please contact our support team for more details and for additional migration assistance as we work to resolve this issue.

+

Sincerely,

+

Hostgator Customer Support

+
+
+

Get help with your transfer

+

Our team of experts is available 24/7.

+
+

Call 866-964-2867

+
+
+

Copyright ©️ 2024 All Right Reserved. Hostgator, 5335 Gate Pkwy, Jacksonville, FL 32256

+

Terms of Service | Privacy Notice

+
+
+
+
+
+
+ + diff --git a/emailtemplates/hostgator_site_transfer_started.html b/emailtemplates/hostgator_site_transfer_started.html new file mode 100644 index 0000000..3cfcc9e --- /dev/null +++ b/emailtemplates/hostgator_site_transfer_started.html @@ -0,0 +1,84 @@ + + + + + + + + + + + Email title + + + + +
+ + + + +
+ + + + +
+
+ +
+
+ + + + + +
+ Hostgator Logo + + Account Login +
+
+
+

Site Transfer Started

+

Thanks for choosing Hostgator to support your online needs.

+

We are writing to let you know that your site transfer has begun!

+

We are currently copying all of your files, content and data to your Hostgator account. You may check the progress of the transfer by clicking the button below.

+

Sincerely,

+

Hostgator Customer Support

+
+
+

View the progress of your site transfer

+
+ Site Transfer Progress +
+
+

Copyright ©️ 2024 All Right Reserved. Hostgator, 5335 Gate Pkwy, Jacksonville, FL 32256

+

Terms of Service | Privacy Notice

+
+
+
+
+
+
+ + From ee0f8298407199182645989d6767580b229a5790 Mon Sep 17 00:00:00 2001 From: ajayadav09 Date: Wed, 24 Apr 2024 16:40:59 +0530 Subject: [PATCH 2/9] updated links --- emailtemplates/bluehost_site_transfer_completed.html | 4 ++-- emailtemplates/bluehost_site_transfer_failed.html | 4 ++-- emailtemplates/bluehost_site_transfer_started.html | 4 ++-- emailtemplates/hostgator_site_transfer_completed.html | 6 ++++-- emailtemplates/hostgator_site_transfer_failed.html | 6 ++++-- emailtemplates/hostgator_site_transfer_started.html | 6 ++++-- 6 files changed, 18 insertions(+), 12 deletions(-) diff --git a/emailtemplates/bluehost_site_transfer_completed.html b/emailtemplates/bluehost_site_transfer_completed.html index 6bb7721..410ab03 100644 --- a/emailtemplates/bluehost_site_transfer_completed.html +++ b/emailtemplates/bluehost_site_transfer_completed.html @@ -49,7 +49,7 @@ Bluehost Logo - Account Login + Account Login @@ -70,7 +70,7 @@

Copyright ©️ 2024 All Right Reserved. Bluehost, 5335 Gate Pkwy, Jacksonville, FL 32256

-

Terms of Service | Privacy Notice

+

Terms of Service | Privacy Notice

diff --git a/emailtemplates/bluehost_site_transfer_failed.html b/emailtemplates/bluehost_site_transfer_failed.html index 52574e5..87bf2ff 100644 --- a/emailtemplates/bluehost_site_transfer_failed.html +++ b/emailtemplates/bluehost_site_transfer_failed.html @@ -50,7 +50,7 @@ Bluehost Logo - Account Login + Account Login @@ -71,7 +71,7 @@

Call 888-401-4678

Copyright ©️ 2024 All Right Reserved. Bluehost, 5335 Gate Pkwy, Jacksonville, FL 32256

-

Terms of Service | Privacy Notice

+

Terms of Service | Privacy Notice

diff --git a/emailtemplates/bluehost_site_transfer_started.html b/emailtemplates/bluehost_site_transfer_started.html index 2113825..4eb6685 100644 --- a/emailtemplates/bluehost_site_transfer_started.html +++ b/emailtemplates/bluehost_site_transfer_started.html @@ -49,7 +49,7 @@ Bluehost Logo - Account Login + Account Login @@ -69,7 +69,7 @@

View the progress of your site transfer

Copyright ©️ 2024 All Right Reserved. Bluehost, 5335 Gate Pkwy, Jacksonville, FL 32256

-

Terms of Service | Privacy Notice

+

Terms of Service | Privacy Notice

diff --git a/emailtemplates/hostgator_site_transfer_completed.html b/emailtemplates/hostgator_site_transfer_completed.html index ee6a768..347ac06 100644 --- a/emailtemplates/hostgator_site_transfer_completed.html +++ b/emailtemplates/hostgator_site_transfer_completed.html @@ -49,7 +49,7 @@ Hostgator Logo - Account Login + Account Login @@ -70,7 +70,9 @@

Copyright ©️ 2024 All Right Reserved. Hostgator, 5335 Gate Pkwy, Jacksonville, FL 32256

-

Terms of Service | Privacy Notice

+

+ Terms of Service | Privacy Notice +

diff --git a/emailtemplates/hostgator_site_transfer_failed.html b/emailtemplates/hostgator_site_transfer_failed.html index adabfe0..b2de546 100644 --- a/emailtemplates/hostgator_site_transfer_failed.html +++ b/emailtemplates/hostgator_site_transfer_failed.html @@ -49,7 +49,7 @@ Hostgator Logo - Account Login + Account Login @@ -70,7 +70,9 @@

Call 866-964-2867

Copyright ©️ 2024 All Right Reserved. Hostgator, 5335 Gate Pkwy, Jacksonville, FL 32256

-

Terms of Service | Privacy Notice

+

+ Terms of Service | Privacy Notice +

diff --git a/emailtemplates/hostgator_site_transfer_started.html b/emailtemplates/hostgator_site_transfer_started.html index 3cfcc9e..64eabb2 100644 --- a/emailtemplates/hostgator_site_transfer_started.html +++ b/emailtemplates/hostgator_site_transfer_started.html @@ -49,7 +49,7 @@ Hostgator Logo - Account Login + Account Login @@ -69,7 +69,9 @@

View the progress of your site transfer

Copyright ©️ 2024 All Right Reserved. Hostgator, 5335 Gate Pkwy, Jacksonville, FL 32256

-

Terms of Service | Privacy Notice

+

+ Terms of Service | Privacy Notice +

From 2933d6ecc70b6808f664cbbccc89d8349e27a1d4 Mon Sep 17 00:00:00 2001 From: Ramya krishna Date: Thu, 25 Apr 2024 13:27:31 +0530 Subject: [PATCH 3/9] update the show MIgration key on completed status --- includes/Migration.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/includes/Migration.php b/includes/Migration.php index dfe0caa..b37ae79 100644 --- a/includes/Migration.php +++ b/includes/Migration.php @@ -43,6 +43,7 @@ public function __construct( Container $container ) { add_action( 'rest_api_init', array( $this, 'register_routes' ) ); add_action( 'pre_update_option_nfd_migrate_site', array( $this, 'on_update_nfd_migrate_site' ) ); + add_action( 'pre_update_option_instawp_last_migration_details', array( $this, 'on_update_instawp_last_migration_details' ), 10, 1 ); } /** @@ -61,4 +62,17 @@ public function register_routes() { public function on_update_nfd_migrate_site() { $response = $this->insta_service->install_instawp_connect(); } + + /** + * Updates showMigrationSteps option based on instawp_last_migration_details + * + * @param array $new_option array values + */ + public function on_update_instawp_last_migration_details( $new_option ) { + $value_updated = $new_option['status']; + if ( 'completed' === $value_updated ) { + update_option( 'showMigrationSteps', true ); + } + return $new_option; + } } From b7f667f8a9b1365848ddb7c7b087f6446c4611ee Mon Sep 17 00:00:00 2001 From: ajayadav09 Date: Thu, 25 Apr 2024 17:27:35 +0530 Subject: [PATCH 4/9] added bluehost_cloud transfer failure --- .../bluehost_cloud_transfer_failed .html | 87 +++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 emailtemplates/bluehost_cloud_transfer_failed .html diff --git a/emailtemplates/bluehost_cloud_transfer_failed .html b/emailtemplates/bluehost_cloud_transfer_failed .html new file mode 100644 index 0000000..490a813 --- /dev/null +++ b/emailtemplates/bluehost_cloud_transfer_failed .html @@ -0,0 +1,87 @@ + + + + + + + + + + + Email title + + + + + +
+ + + + +
+ + + + +
+
+
+
+ + + + + +
+ Bluehost Logo + + Account Login +
+
+
+

Site Transfer Failed

+

Thanks for choosing Bluehost to support your online needs.

+

Unfortunately, we were unable to successfully complete the transfer of your site.

+

Please contact our support team for more details and for additional migration assistance as we work to resolve this issue.

+

Sincerely,

+

Bluehost Customer Support

+
+
+

Get help with your transfer

+

Our team of experts is available 24/7.

+
+

Call 844-206-2096

+
+
+

Copyright ©️ 2024 All Right Reserved. Bluehost, 5335 Gate Pkwy, Jacksonville, FL 32256

+

Terms of Service | Privacy Notice

+
+
+ +
+
+
+ + + From 326a07521b989ce28c8fb6d987527edb833cde47 Mon Sep 17 00:00:00 2001 From: Ramya krishna Date: Fri, 26 Apr 2024 11:18:18 +0530 Subject: [PATCH 5/9] bh-cloud end point added and end point based on brand --- bootstrap.php | 8 ++++++-- includes/Migration.php | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/bootstrap.php b/bootstrap.php index 50f51dc..0b8b47c 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -3,6 +3,7 @@ use NewfoldLabs\WP\Module\Migration\Migration; use NewfoldLabs\WP\Module\Migration\Services\UtilityService; use NewfoldLabs\WP\ModuleLoader\Container; +use function NewfoldLabs\WP\Context\getContext; use function NewfoldLabs\WP\ModuleLoader\register; @@ -24,12 +25,15 @@ function () { if ( ! defined( 'NFD_MIGRATION_MODULE_VERSION' ) ) { define( 'NFD_MIGRATION_MODULE_VERSION', '1.0.0' ); } - + $migrate_endpoint = 'migrate/'. $container->plugin()->id; + if ( 'atomic' === getContext( 'platform' ) ) { + $migrate_endpoint = 'migrate/bh-cloud'; + } defined( 'NFD_PROXY_ACCESS_WORKER' ) || define( 'NFD_PROXY_ACCESS_WORKER', 'https://hiive.cloud/workers/migration-token-proxy' ); $response = UtilityService::get_insta_api_key(); defined( 'INSTAWP_API_KEY' ) || define( 'INSTAWP_API_KEY', $response ); defined( 'INSTAWP_API_DOMAIN' ) || define( 'INSTAWP_API_DOMAIN', 'https://app.instawp.io' ); - defined( 'INSTAWP_MIGRATE_ENDPOINT' ) || define( 'INSTAWP_MIGRATE_ENDPOINT', 'migrate/bluehost' ); + defined( 'INSTAWP_MIGRATE_ENDPOINT' ) || define( 'INSTAWP_MIGRATE_ENDPOINT', $migrate_endpoint ); new Migration( $container ); }, diff --git a/includes/Migration.php b/includes/Migration.php index b37ae79..d9df076 100644 --- a/includes/Migration.php +++ b/includes/Migration.php @@ -66,7 +66,7 @@ public function on_update_nfd_migrate_site() { /** * Updates showMigrationSteps option based on instawp_last_migration_details * - * @param array $new_option array values + * @param array $new_option status of migration */ public function on_update_instawp_last_migration_details( $new_option ) { $value_updated = $new_option['status']; From cfcb6100ab2e630be5140b41f8f5d773f32872aa Mon Sep 17 00:00:00 2001 From: Ramya krishna Date: Fri, 26 Apr 2024 11:19:39 +0530 Subject: [PATCH 6/9] linting fixes --- bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap.php b/bootstrap.php index 0b8b47c..0136af2 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -25,7 +25,7 @@ function () { if ( ! defined( 'NFD_MIGRATION_MODULE_VERSION' ) ) { define( 'NFD_MIGRATION_MODULE_VERSION', '1.0.0' ); } - $migrate_endpoint = 'migrate/'. $container->plugin()->id; + $migrate_endpoint = 'migrate/' . $container->plugin()->id; if ( 'atomic' === getContext( 'platform' ) ) { $migrate_endpoint = 'migrate/bh-cloud'; } From 9b227d536d80473d3e347f0bd28632ef7d9ab5b6 Mon Sep 17 00:00:00 2001 From: Ramya krishna Date: Fri, 26 Apr 2024 15:51:43 +0530 Subject: [PATCH 7/9] Passing the brand instead of key --- bootstrap.php | 8 ++++---- includes/Services/UtilityService.php | 6 ++++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/bootstrap.php b/bootstrap.php index 0136af2..8dd4f72 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -25,15 +25,15 @@ function () { if ( ! defined( 'NFD_MIGRATION_MODULE_VERSION' ) ) { define( 'NFD_MIGRATION_MODULE_VERSION', '1.0.0' ); } - $migrate_endpoint = 'migrate/' . $container->plugin()->id; + $brand = $container->plugin()->id; if ( 'atomic' === getContext( 'platform' ) ) { - $migrate_endpoint = 'migrate/bh-cloud'; + $brand = 'bh-cloud'; } defined( 'NFD_PROXY_ACCESS_WORKER' ) || define( 'NFD_PROXY_ACCESS_WORKER', 'https://hiive.cloud/workers/migration-token-proxy' ); - $response = UtilityService::get_insta_api_key(); + $response = UtilityService::get_insta_api_key( $brand ); defined( 'INSTAWP_API_KEY' ) || define( 'INSTAWP_API_KEY', $response ); defined( 'INSTAWP_API_DOMAIN' ) || define( 'INSTAWP_API_DOMAIN', 'https://app.instawp.io' ); - defined( 'INSTAWP_MIGRATE_ENDPOINT' ) || define( 'INSTAWP_MIGRATE_ENDPOINT', $migrate_endpoint ); + defined( 'INSTAWP_MIGRATE_ENDPOINT' ) || define( 'INSTAWP_MIGRATE_ENDPOINT', 'migrate/' . $migrate_endpoint ); new Migration( $container ); }, diff --git a/includes/Services/UtilityService.php b/includes/Services/UtilityService.php index 8e7bfcc..17d907f 100644 --- a/includes/Services/UtilityService.php +++ b/includes/Services/UtilityService.php @@ -7,9 +7,11 @@ class UtilityService { /** * Get the api key from worker + * + * @param string $brand name of the brand */ - public static function get_insta_api_key() { - $insta_cf_worker = NFD_PROXY_ACCESS_WORKER . '/get/token?access_token=BH_MIGRATION_API_KEY'; + public static function get_insta_api_key( $brand ) { + $insta_cf_worker = NFD_PROXY_ACCESS_WORKER . '/get/token?brand=' . $brand; $insta_cf_data = wp_remote_get( $insta_cf_worker, array( From c04aba0d1664fdce3eda5ac32423e338bff8367a Mon Sep 17 00:00:00 2001 From: diDroid Date: Mon, 29 Apr 2024 14:18:23 +0530 Subject: [PATCH 8/9] url placeholders updated --- emailtemplates/bluehost_site_transfer_completed.html | 4 ++-- emailtemplates/bluehost_site_transfer_started.html | 2 +- emailtemplates/hostgator_site_transfer_completed.html | 4 ++-- emailtemplates/hostgator_site_transfer_started.html | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/emailtemplates/bluehost_site_transfer_completed.html b/emailtemplates/bluehost_site_transfer_completed.html index 410ab03..37c7145 100644 --- a/emailtemplates/bluehost_site_transfer_completed.html +++ b/emailtemplates/bluehost_site_transfer_completed.html @@ -64,9 +64,9 @@

Site Transfer Complete

Copyright ©️ 2024 All Right Reserved. Bluehost, 5335 Gate Pkwy, Jacksonville, FL 32256

diff --git a/emailtemplates/bluehost_site_transfer_started.html b/emailtemplates/bluehost_site_transfer_started.html index 4eb6685..07934d4 100644 --- a/emailtemplates/bluehost_site_transfer_started.html +++ b/emailtemplates/bluehost_site_transfer_started.html @@ -65,7 +65,7 @@

Site Transfer Started

View the progress of your site transfer


- Site Transfer Progress + Site Transfer Progress

Copyright ©️ 2024 All Right Reserved. Bluehost, 5335 Gate Pkwy, Jacksonville, FL 32256

diff --git a/emailtemplates/hostgator_site_transfer_completed.html b/emailtemplates/hostgator_site_transfer_completed.html index 347ac06..088c797 100644 --- a/emailtemplates/hostgator_site_transfer_completed.html +++ b/emailtemplates/hostgator_site_transfer_completed.html @@ -64,9 +64,9 @@

Site Transfer Complete

Copyright ©️ 2024 All Right Reserved. Hostgator, 5335 Gate Pkwy, Jacksonville, FL 32256

diff --git a/emailtemplates/hostgator_site_transfer_started.html b/emailtemplates/hostgator_site_transfer_started.html index 64eabb2..3bec601 100644 --- a/emailtemplates/hostgator_site_transfer_started.html +++ b/emailtemplates/hostgator_site_transfer_started.html @@ -65,7 +65,7 @@

Site Transfer Started

View the progress of your site transfer


- Site Transfer Progress + Site Transfer Progress

Copyright ©️ 2024 All Right Reserved. Hostgator, 5335 Gate Pkwy, Jacksonville, FL 32256

From 1a2bd4181c27584d7a79bf18234eb7078f3642e4 Mon Sep 17 00:00:00 2001 From: Ramya krishna Date: Mon, 29 Apr 2024 15:25:09 +0530 Subject: [PATCH 9/9] brand variable replaced --- bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap.php b/bootstrap.php index 8dd4f72..fd2877c 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -33,7 +33,7 @@ function () { $response = UtilityService::get_insta_api_key( $brand ); defined( 'INSTAWP_API_KEY' ) || define( 'INSTAWP_API_KEY', $response ); defined( 'INSTAWP_API_DOMAIN' ) || define( 'INSTAWP_API_DOMAIN', 'https://app.instawp.io' ); - defined( 'INSTAWP_MIGRATE_ENDPOINT' ) || define( 'INSTAWP_MIGRATE_ENDPOINT', 'migrate/' . $migrate_endpoint ); + defined( 'INSTAWP_MIGRATE_ENDPOINT' ) || define( 'INSTAWP_MIGRATE_ENDPOINT', 'migrate/' . $brand ); new Migration( $container ); },