wc_cart_totals_fee_html()
Get the fee value.
Hooks from the function
Returns
null. Nothing (null).
Usage
wc_cart_totals_fee_html( $fee );
- $fee(object) (required)
- Fee data.
wc_cart_totals_fee_html() wc cart totals fee html code WC 10.7.0
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
}