WordPress at a glance
function is not described

wc_cart_totals_coupon_label() WC 1.0

Get a coupon label.

Hooks from the function
Return

String. Nothing.

Usage

wc_cart_totals_coupon_label( $coupon, $echo );
$coupon(string|WC_Coupon) (required)
Coupon data or code.
$echo(true|false)
Echo or return.

Code of wc_cart_totals_coupon_label() WC 5.3.0

<?php
function wc_cart_totals_coupon_label( $coupon, $echo = true ) {
	if ( is_string( $coupon ) ) {
		$coupon = new WC_Coupon( $coupon );
	}

	/* translators: %s: coupon code */
	$label = apply_filters( 'woocommerce_cart_totals_coupon_label', sprintf( esc_html__( 'Coupon: %s', 'woocommerce' ), $coupon->get_code() ), $coupon );

	if ( $echo ) {
		echo $label; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
	} else {
		return $label;
	}
}