Title: Remove Shipping Description
Last modified: October 19, 2023

---

# Remove Shipping Description

 *  [telecristofoli](https://wordpress.org/support/users/telecristofoli/)
 * (@telecristofoli)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/remove-shipping-description/)
 * Hi There! Just need to hide the shipping description as bellow.
 * Or I can also just to hide the shipping cost, in this case, will need to change
   the name of the filed “entrega” for “Entrega – valor único R$ 9,90”
 * Thanks a lot!
 * ![](https://i0.wp.com/mlu0gdl3fyv4.i.optimole.com/w%3Aauto/h%3Aauto/q%3Amauto/
   process%3A2911/id%3A765daf79e90c536dcdac57b18129a061/https%3A//telecristofoli.
   com/PRINT-INVOICE.png?ssl=1)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fremove-shipping-description%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [nick1122](https://wordpress.org/support/users/nick1122/)
 * (@nick1122)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/remove-shipping-description/#post-17149719)
 * Hi,
   First of all, I apologize for the delay in getting back to you on this.Here’s
   a filter that can hide the shipping method in the invoice print. Add this code
   snippet in functions.php file of your currently active theme.
 *     ```wp-block-code
       /**
        * Add this code snippet in the functions.php file of your currently active theme.
        * Removing the shipping Via method in WC.
        */
       function custom_shipping_to_display_shipped_via( $shipping, $order ) {
       	// Modify the $shipping string to remove 'via' and the shipping method.
       	$shipping_method = $order->get_shipping_method();
       	$via_position = strpos( $shipping, 'via ' . $shipping_method );
       	if ( $via_position !== false ) {
       		$shipping_without_via    = substr( $shipping, 0, $via_position );
       		$shipping_without_method = rtrim( $shipping_without_via, ' ' );
       		$shipping                = $shipping_without_method;
       	}
       	return $shipping;
       }
       add_filter( 'woocommerce_order_shipping_to_display_shipped_via', 'custom_shipping_to_display_shipped_via', 10, 2 );
       ```
   
 * Note: This filter is from Woocmmerece, so it will also hide the shipping method
   title in your order table. We have specially modified this code for you to hide
   the shipping method in the value.
   Please close this thread if the given solution
   works for you.Regards,Nikhil.

Viewing 1 replies (of 1 total)

The topic ‘Remove Shipping Description’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-delivery-notes/assets/icon-256x256.jpg?rev=2829362)
 * [Print Invoice & Delivery Notes for WooCommerce](https://wordpress.org/plugins/woocommerce-delivery-notes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-delivery-notes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-delivery-notes/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-delivery-notes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-delivery-notes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-delivery-notes/reviews/)

## Tags

 * [print](https://wordpress.org/support/topic-tag/print/)
 * [remove items](https://wordpress.org/support/topic-tag/remove-items/)
 * [woocomerce](https://wordpress.org/support/topic-tag/woocomerce/)

 * 1 reply
 * 2 participants
 * Last reply from: [nick1122](https://wordpress.org/support/users/nick1122/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/remove-shipping-description/#post-17149719)
 * Status: not resolved