WC_Product::set_height( float|string $height )

Set the product height.


Description Description


Parameters Parameters

$height

(float|string) (Required) Total height.


Top ↑

Source Source

File: includes/abstracts/abstract-wc-product.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.