PluginProbe
MailerLite – WooCommerce integration / trunk
MailerLite – WooCommerce integration vtrunk
3.1.27 3.1.25 3.1.26 3.1.24 3.1.23 3.1.22 3.1.21 3.1.20 3.1.19 3.1.18 3.1.17 3.1.16 3.1.15 1.8.7 1.8.8 2.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 All 148 releases
← All changes | includes/WooMailerLiteActivator.php +10 -0 3.1.17 → trunk View file →
@@ -19,8 +19,18 @@
19 19 public static function activate()
20 20 {
21 21 WooMailerLiteMigration::migrate();
22 22 WooMailerLiteOptions::update('initial_sync', false);
23 +
24 + if (WooMailerLiteOptions::get('shopId')) {
25 + try {
26 + WooMailerLiteApi::client()->toggleShop(home_url(), 1);
27 + } catch (Throwable $th) {
28 + WooMailerLiteLog()->error('WooMailerLiteActivator::activate toggleShop failed', [
29 + 'error' => $th->getMessage(),
30 + ]);
31 + }
32 + }
23 33 }
24 34
25 35 public static function deactivate()
26 36 {