woocommerce_order_shipping_to_display_shipped_via filter-hookWC 1.0

translators: %s: method

Usage

add_filter( 'woocommerce_order_shipping_to_display_shipped_via', 'wp_kama_woocommerce_order_shipping_to_display_shipped_via_filter', 10, 2 );

/**
 * Function for `woocommerce_order_shipping_to_display_shipped_via` filter-hook.
 * 
 * @param  $html 
 * @param  $that 
 *
 * @return 
 */
function wp_kama_woocommerce_order_shipping_to_display_shipped_via_filter( $html, $that ){

	// filter...
	return $html;
}
$html
-
$that
-

Where the hook is called

WC_Abstract_Order::get_shipping_to_display()
woocommerce_order_shipping_to_display_shipped_via
woocommerce/includes/abstracts/abstract-wc-order.php 2213
$shipping .= apply_filters( 'woocommerce_order_shipping_to_display_shipped_via', '&nbsp;<small class="shipped_via">' . sprintf( __( 'via %s', 'woocommerce' ), $this->get_shipping_method() ) . '</small>', $this );

Where the hook is used in WooCommerce

woocommerce/src/Blocks/BlockTypes/OrderConfirmation/Totals.php 190
add_filter( 'woocommerce_order_shipping_to_display_shipped_via', '__return_empty_string' );