WC_Product::is_virtual
Checks if a product is virtual (has no shipping).
Method of the class: WC_Product{}
Hooks from the method
Returns
true|false.
Usage
$WC_Product = new WC_Product(); $WC_Product->is_virtual();
WC_Product::is_virtual() WC Product::is virtual code WC 10.4.3
public function is_virtual() {
return apply_filters( 'woocommerce_is_virtual', true === $this->get_virtual(), $this );
}