I have a checkout page that adds a custom fee "Delivery Charge" of $100.
Here's my code:
$cart->add_fee( 'Delivery Charge', 100, false, '' );
However I want to remove that "Delivery Charge" fee from my checkout when a certain function fires.
I looked online but can't seem to find any documentation for clearing all custom fees from a checkout page.
Is there a specific method such as "remove_fee" that enables me to remove any fee that's currently on the checkout page?