WC_Product::set_height()publicWC 3.0.0

Set the product height.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

$WC_Product = new WC_Product();
$WC_Product->set_height( $height );
$height(float|строка) (обязательный)
Total height.

Список изменений

С версии 3.0.0 Введена.

Код WC_Product::set_height() WC 8.7.0

public function set_height( $height ) {
	$this->set_prop( 'height', '' === $height ? '' : wc_format_decimal( $height ) );
}