/** * Remove “Shipping methot” from cart */ add_filter( 'woocommerce_cart_needs_shipping', 'filter_cart_needs_shipping' ); function filter_cart_needs_shipping( $needs_shipping ) { if ( is_cart() ) { $needs_shipping = false; } return $needs_shipping; }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter