/** * 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; }