woocommerce_cart_calculate_fees
Trigger an action so 3rd parties can add custom fees.
Использование
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
- -
Список изменений
С версии 2.0.0 | Введена. |
Где вызывается хук
woocommerce_cart_calculate_fees
woocommerce/includes/class-wc-cart.php 1905
do_action( 'woocommerce_cart_calculate_fees', $this );