wc_cart_totals_fee_html()WC 1.0

Get the fee value.

Hooks from the function

Return

null. Nothing (null).

Usage

wc_cart_totals_fee_html( $fee );
$fee(object) (required)
Fee data.

wc_cart_totals_fee_html() code WC 8.6.1

function wc_cart_totals_fee_html( $fee ) {
	$cart_totals_fee_html = WC()->cart->display_prices_including_tax() ? wc_price( $fee->total + $fee->tax ) : wc_price( $fee->total );

	echo apply_filters( 'woocommerce_cart_totals_fee_html', $cart_totals_fee_html, $fee ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}