$rate){ $rates[$k]->rate_cost = apply_filters('wcml_shipping_price_amount', $rates[$k]->rate_cost); $rates[$k]->rate_cost_per_item = apply_filters('wcml_shipping_price_amount', $rates[$k]->rate_cost_per_item); $rates[$k]->rate_cost_per_weight_unit = apply_filters('wcml_shipping_price_amount', $rates[$k]->rate_cost_per_weight_unit); } return $rates; } public function table_rate_instance_settings($settings){ if(is_numeric($settings['handling_fee'])){ $settings['handling_fee'] = apply_filters('wcml_shipping_price_amount', $settings['handling_fee']); } $settings['min_cost'] = apply_filters('wcml_shipping_price_amount', $settings['min_cost']); return $settings; } }