wc_cart_totals_fee_html( object $fee )

Get the fee value.


Description Description


Parameters Parameters

$fee

(Required) Fee data.


Top ↑

Source Source

File: includes/wc-cart-functions.php

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 ); // WPCS: XSS ok.
}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.