WC_Product::needs_shipping()publicWC 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 6.8.2

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