WC_Product_Variable::has_dimensions │ public │ WC 1.0

Returns whether or not the product has dimensions set.

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

Хуков нет.

Возвращает

bool.

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

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

Код WC_Product_Variable::has_dimensions() WC 11.2.1

public function has_dimensions() {
	return parent::has_dimensions() || $this->child_has_dimensions();
}