WC_Product::needs_shipping()
Checks if a product needs shipping.
Method of the class: WC_Product{}
Hooks from the method
Return
true|false
.
Usage
$WC_Product = new WC_Product(); $WC_Product->needs_shipping();
WC_Product::needs_shipping() WC Product::needs shipping code WC 8.7.0
public function needs_shipping() { return apply_filters( 'woocommerce_product_needs_shipping', ! $this->is_virtual(), $this ); }