Home » WooCommerce: Hide “Shipping Via ___” @ Thank You Page, View Order Page

WooCommerce: Hide “Shipping Via ___” @ Thank You Page, View Order Page

by Tutor Aspire

Especially when you do a lot of custom shipping, showing the shipping method title may not be a good idea. Honestly, the default “via ___” suffix beside the shipping cost doesn’t make much sense anyway.

So, let’s get rid of it. With a 1 liner. Enjoy!

Here on the Thank you page (also, on the View Order page under My Account), a suffix is added to the shipping amount with the name of the shipping method. This is what we’re trying to completely hide.

PHP Snippet: Remove “via ___” Shipping Amount Suffix @ WooCommerce Thank You & My Account > View Order Pages

/**
 * @snippet       Hide "via ___" @ WooCommerce Thank You Page
 * @how-to        Get tutoraspire.com FREE
 * @author        Tutor Aspire
 * @compatible    WooCommerce 7
 * @donate $9     https://www.tutoraspire.com
 */

add_filter( 'woocommerce_order_shipping_to_display_shipped_via', '__return_empty_string' );

You may also like