woocommerce_cart_totals_coupon_label

woocommerce_cart_totals_coupon_label

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_cart_totals_coupon_label') is found 1 times:

  • /includes/wc-cart-functions.php line 289
    		$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;
    	}