Last active
May 23, 2018 08:28
-
-
Save MakarandMane/9ac1bce94665c34d146dfdca8fa5164b to your computer and use it in GitHub Desktop.
Remove coupon code form before woocommerce checkout form.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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