Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sarancartrabbit/d5531af296b1c278d575230e045f5dbd to your computer and use it in GitHub Desktop.
Save sarancartrabbit/d5531af296b1c278d575230e045f5dbd to your computer and use it in GitHub Desktop.
Discount rules v2: Remove the draft order status
add_filter('advanced_woo_discount_rules_check_purchase_first_order_status', function ($order_statuses) {
unset($order_statuses['wc-checkout-draft']);
return $order_statuses;
},10,1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment