wc_cart_totals_fee_html

Get the fee value.

Description

wc_cart_totals_fee_html( (object) $fee ); 

Parameters (1)

0. $fee (object)
The fee.

Usage

  1. if ( !function_exists( 'wc_cart_totals_fee_html' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-cart-functions.php'; 
  3.  
  4. // The fee. 
  5. $fee = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wc_cart_totals_fee_html($fee); 
  9.  

Defined (1)

The function is defined in the following location(s).

/includes/wc-cart-functions.php  
  1. function wc_cart_totals_fee_html( $fee ) { 
  2. $cart_totals_fee_html = ( 'excl' == WC()->cart->tax_display_cart ) ? wc_price( $fee->amount ) : wc_price( $fee->amount + $fee->tax ); 
  3.  
  4. echo apply_filters( 'woocommerce_cart_totals_fee_html', $cart_totals_fee_html, $fee );