WC_Product_Variable::has_weight()publicWC 1.0

Returns whether or not the product has weight set.

Метод класса: WC_Product_Variable{}

Хуков нет.

Возвращает

true|false.

Использование

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

Код WC_Product_Variable::has_weight() WC 8.7.0

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