WC_Product::set_height
Set the product height.
Method of the class: WC_Product{}
No Hooks.
Returns
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() WC Product::set height code WC 10.6.2
public function set_height( $height ) {
$this->set_prop( 'height', '' === $height ? '' : wc_format_decimal( $height ) );
}