Hide the shipping via on thank you page and view order pages in WooCommerce

Hide the shipping via on thank you page and view order pages in WooCommerce on child sites.

Snippet Type

Execute on Child Sites

Snippet

add_filter( 'woocommerce_order_shipping_to_display_shipped_via', '__return_empty_string' );