WC_Product::has_dimensions()
Returns whether or not the product has dimensions set.
Method of the class: WC_Product{}
No Hooks.
Return
true|false
.
Usage
$WC_Product = new WC_Product(); $WC_Product->has_dimensions();
WC_Product::has_dimensions() WC Product::has dimensions code WC 9.7.1
public function has_dimensions() { return ( $this->get_length() || $this->get_height() || $this->get_width() ) && ! $this->get_virtual(); }