Change the word “Coupon” to “Discount” text in the cart
1 2 3 |
add_filter( 'woocommerce_cart_totals_coupon_label', function ( $label, $coupon ) { return sprintf( esc_html__( 'Discount: %s', 'woocommerce' ), $coupon->get_code() ); }, 10, 2 ); |