WC_Product::set_height()publicWC 3.0.0

Set the product height.

Method of the class: WC_Product{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Product = new WC_Product();
$WC_Product->set_height( $height );
$height(float|string) (required)
Total height.

Changelog

Since 3.0.0 Introduced.

WC_Product::set_height() code WC 8.7.0

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