I need to change the default coupon label that WooCommerce is adding to the cart and checkout table.
This can be done with:
add_filter( 'woocommerce_cart_totals_coupon_label', 'my_function', 99, 2 );
function my_function( $label, $coupon ) {
return 'Discount';
}
But I need different names for the coupons. I need coupon 1 to be 'Discount', and all other coupons should be displayed as 'Coupon' (without the actual coupon name), like in this image.