WC_Product_Variation::get_height() public WC 1.0
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.
Код WC_Product_Variation::get_height() WC Product Variation::get height WC 5.0.0
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;
}