shipping->load_shipping_methods(); $shipping_methods = $woocommerce->shipping->get_shipping_methods(); foreach($methods as $k => $method){ // exceptions if( isset($shipping_methods[$method->id]) && isset($shipping_methods[$method->id]->settings['type']) && $shipping_methods[$method->id]->settings['type'] == 'percent' || preg_match('/^table_rate-[0-9]+ : [0-9]+$/', $k) ){ continue; } foreach($method->taxes as $j => $tax){ $methods[$k]->taxes[$j] = apply_filters('wcml_shipping_price_amount', $methods[$k]->taxes[$j]); } } return $methods; } // Before WooCommerce 2.6 public function adjust_min_amount_required($options){ if( !empty( $options['min_amount'] ) ){ $options['min_amount'] = apply_filters( 'wcml_shipping_free_min_amount', $options['min_amount'] ); } return $options; } }