Jaygaaah darmowa wysyłka woocommerce

//For Free Cost Shipping
function zeroCost($cost, $package, $ship)
{

    foreach (WC()->cart->get_cart() as $cart_item) {

        if (has_term(array('15', '456'), 'product_cat', $cart_item['product_id'])) {
            $cost = 0;
        }
		
        if (has_term(array('15', '456'), 'product_tag', $cart_item['product_id'])) {
            $cost = 0;
        }
    }

    return $cost;

}
add_filter('woocommerce_shipping_mnsjay_shipping_1_cost', 'zeroCost', 10, 3);
add_filter('woocommerce_shipping_mnsjay_shipping_2_cost', 'zeroCost', 10, 3);
add_filter('woocommerce_shipping_mnsjay_shipping_3_cost', 'zeroCost', 10, 3);
add_filter('woocommerce_shipping_mnsjay_shipping_4_cost', 'zeroCost', 10, 3);
Amin Arjmand