WC_Product_Variable::has_weight()
Returns whether or not the product has weight set.
Method of the class: WC_Product_Variable{}
No Hooks.
Return
true|false
.
Usage
$WC_Product_Variable = new WC_Product_Variable(); $WC_Product_Variable->has_weight();
WC_Product_Variable::has_weight() WC Product Variable::has weight code WC 9.4.2
public function has_weight() { return parent::has_weight() || $this->child_has_weight(); }