Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AshlinRejo/f655d288e88344562eee5744f0d51517 to your computer and use it in GitHub Desktop.
Save AshlinRejo/f655d288e88344562eee5744f0d51517 to your computer and use it in GitHub Desktop.
Woo Discount - cart rules: Handing loading issue in cart while having Subscription plugin
if(!function_exists('woo_discount_rules_trigger_applied_coupon_before_load_cart_method')){
function woo_discount_rules_trigger_applied_coupon_before_load_cart_method($load_before_cart){
return true;
}
}
add_filter('woo_discount_rules_trigger_applied_coupon_before_load_cart', 'woo_discount_rules_trigger_applied_coupon_before_load_cart_method', 10);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment