woocommerce_order_shipping_to_display_shipped_via
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
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', ' <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' );