wc_cart_totals_fee_html()
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() wc cart totals fee html code WC 9.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 }