WC_Product_Variation::get_height()
Returns the product height.
Метод класса: WC_Product_Variation{}
Хуки из метода
Возвращает
Строку
.
Использование
$WC_Product_Variation = new WC_Product_Variation(); $WC_Product_Variation->get_height( $context );
- $context(строка)
- What the value is for. Valid values are view and edit.
По умолчанию: 'view'
Код WC_Product_Variation::get_height() WC Product Variation::get height WC 9.8.1
public function get_height( $context = 'view' ) { $value = $this->get_prop( 'height', $context ); // Inherit value from parent. if ( 'view' === $context && empty( $value ) ) { $value = apply_filters( $this->get_hook_prefix() . 'height', $this->parent_data['height'], $this ); } return $value; }