WC_Product::set_width( float|string $width )
Set the product width.
Description Description
Parameters Parameters
- $width
-
(Required) Total width.
Source Source
File: includes/abstracts/abstract-wc-product.php
public function set_width( $width ) {
$this->set_prop( 'width', '' === $width ? '' : wc_format_decimal( $width ) );
}
Changelog Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |