Add a feature flag [MAILPOET-1483]

This commit is contained in:
wxa
2019-04-29 14:07:00 +03:00
committed by M. Shull
parent 26cbd79535
commit ecf0fe63c0
4 changed files with 13 additions and 0 deletions

View File

@@ -157,6 +157,9 @@ class Hooks {
}
function setupWooCommerceSubscriptionEvents() {
if (!$this->settings->get('woo_commerce_list_sync_enabled')) {
return false;
}
$woocommerce = $this->settings->get('woocommerce', []);
// WooCommerce: subscribe on checkout