WordPress at Your Fingertips
function is not described

WC_Product_Variable::has_weight() public WC 1.0

Returns whether or not the product has weight set.

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

No Hooks.

Return

true|false.

Usage

$WC_Product_Variable = new WC_Product_Variable();
$WC_Product_Variable->has_weight();

Code of WC_Product_Variable::has_weight() WC 5.8.0

public function has_weight() {
	return parent::has_weight() || $this->child_has_weight();
}