Skip to content

Commit

Permalink
cs
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyvankooten committed Jan 3, 2025
1 parent 5ad7358 commit cf91374
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions integrations/woocommerce/class-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,10 @@ public function add_hooks()
add_action('woocommerce_checkout_order_processed', array($this, 'subscribe_from_woocommerce_checkout'));
add_action('woocommerce_store_api_checkout_order_processed', array($this, 'subscribe_from_woocommerce_checkout'));
if ($this->options['precheck']) {
add_filter("woocommerce_get_default_value_for_mc4wp/optin", function ($value) {
add_filter('woocommerce_get_default_value_for_mc4wp/optin', function ($value) {
return '1';
});
}

}

/**
Expand Down

0 comments on commit cf91374

Please sign in to comment.