Skip to main content
Login Join
Snippet · PHP

Hide the WooCommerce Coupon Field on the Checkout Page

Shared by Amit Dholiya · August 6, 2026 · @woocommerce_coupons_enabled

1 copy
12 views
1 upvote
Back to Snippets

The coupon field on the WooCommerce checkout page isn’t always necessary. If your store doesn’t use coupons or you want a cleaner checkout experience, you can easily remove the coupon form using a simple code snippet.

Steps

  1. Open your theme’s functions.php file.
  2. Add the code snippet below.
  3. Save the file.
  4. Refresh the checkout page.

Done — the coupon form will no longer appear during checkout.

function hide_checkout_coupon_form( $enabled ) {
    return false;
}

add_filter(
    'woocommerce_coupons_enabled',
    'hide_checkout_coupon_form'
);
Know a different way to do this? Add your approach as a variation so folks can compare them side by side.
Submit a variation

0 comments