You appear to be a bot. Output may be restricted
Add additional fee to the cart.
This method should be called on a callback attached to the woocommerce_cart_calculate_fees action during cart/checkout. Fees do not persist.
WC_Cart::add_fee( $name, $amount, $taxable, $tax_class );
- ( string ) required – Unique name for the fee. Multiple fees of the same name cannot be added.
- ( float ) required – Fee amount (do not enter negative amounts).
- ( bool ) optional – Is the fee taxable? (default: false).
- ( string ) optional – The tax class for the fee if taxable. A blank string is standard tax class. (default: '').
File name: woocommerce/includes/class-wc-cart.php