הסרת כל המשלוחים במשלוח חינם

add_filter( 'woocommerce_package_rates', 'ninito_shipping', 10, 2 );

function ninito_shipping( $rates ) {
if (isset($rates['free_shipping:2'])) {
unset( $rates['flat_rate:1']);
}
return $rates;
}