WordPress at a glance
function is not described

WC_Product::is_virtual() WC 1.0

Checks if a product is virtual (has no shipping).

This is a method of the class: WC_Product

Hooks from the method
Return

true/false.

Usage

$WC_Product = new WC_Product();
$var = $WC_Product->is_virtual();

Code of WC Product::is virtual: woocommerce/includes/abstracts/abstract-wc-product.php WC 3.9.3

<?php
public function is_virtual() {
	return apply_filters( 'woocommerce_is_virtual', true === $this->get_virtual(), $this );
}