Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save MakarandMane/9ac1bce94665c34d146dfdca8fa5164b to your computer and use it in GitHub Desktop.
Save MakarandMane/9ac1bce94665c34d146dfdca8fa5164b to your computer and use it in GitHub Desktop.
Remove coupon code form before woocommerce checkout form.
function luxeluck_remove_coupon_form(){
add_filter( 'woocommerce_coupons_enabled', __return_false );
}
add_action('woocommerce_before_checkout_form', 'luxeluck_remove_coupon_form', 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment