WC_Product_Variation::get_height()publicWC 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.
По умолчанию: 'view'

Код WC_Product_Variation::get_height() WC 8.7.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;
}