woocommerce_cart_calculate_fees action-hookWC 2.0.0

Trigger an action so 3rd parties can add custom fees.

Usage

add_action( 'woocommerce_cart_calculate_fees', 'wp_kama_woocommerce_cart_calculate_fees_action' );

/**
 * Function for `woocommerce_cart_calculate_fees` action-hook.
 * 
 * @param  $that 
 *
 * @return void
 */
function wp_kama_woocommerce_cart_calculate_fees_action( $that ){

	// action...
}
$that
-

Changelog

Since 2.0.0 Introduced.

Where the hook is called

WC_Cart::calculate_fees()
woocommerce_cart_calculate_fees
woocommerce/includes/class-wc-cart.php 1915
do_action( 'woocommerce_cart_calculate_fees', $this );

Where the hook is used in WooCommerce

Usage not found.