Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // WooCommerce hide coupon field on checkout
- // code goes in functions.php for your child theme
- add_filter( ‘woocommerce_coupons_enabled’, ‘hide_coupon_field_on_checkout’ );
- function hide_coupon_field_on_checkout( $enabled ) {
- if ( is_checkout() ) {
- $enabled = false;
- }
- return $enabled;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement