woocommerce_cart_calculate_fees
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
woocommerce_cart_calculate_fees
woocommerce/includes/class-wc-cart.php 2046
do_action( 'woocommerce_cart_calculate_fees', $this );