Hide the shipping to text on cart in WooCommerce

Hide the shipping to text on cart in WooCommerce on child sites.

Snippet Type

Execute on Child Sites

Snippet

add_filter( 'gettext', 'wc_translate_shippingto', 9999, 3 );
   
function wc_translate_shippingto( $translated, $untranslated, $domain ) {
   if ( ! is_admin() && 'woocommerce' === $domain ) {
      switch ( $translated ) {
         case 'Shipping to %s.':
            $translated = '';
            break;
      }
   }   
   return $translated;
}