WC_Product::set_height
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 Product::set height WC 10.4.3
public function set_height( $height ) {
$this->set_prop( 'height', '' === $height ? '' : wc_format_decimal( $height ) );
}