WordPress at Your Fingertips
function is not described

WC_Product::needs_shipping() public WC 1.0

Checks if a product needs shipping.

{} It's a method of the class: WC_Product{}

Hooks from the method
Return

true|false.

Usage

$WC_Product = new WC_Product();
$WC_Product->needs_shipping();

Code of WC_Product::needs_shipping() WC 5.5.2

<?php
public function needs_shipping() {
	return apply_filters( 'woocommerce_product_needs_shipping', ! $this->is_virtual(), $this );
}