WC_Product_Variable_Data_Store_Interface::child_has_weight()
Does a child have a weight set?
Method of the class: WC_Product_Variable_Data_Store_Interface{}
No Hooks.
Return
true|false
.
Usage
$WC_Product_Variable_Data_Store_Interface = new WC_Product_Variable_Data_Store_Interface(); $WC_Product_Variable_Data_Store_Interface->child_has_weight( $product );
- $product(WC_Product) (required)
- Product object.
WC_Product_Variable_Data_Store_Interface::child_has_weight() WC Product Variable Data Store Interface::child has weight code WC 9.4.2
public function child_has_weight( $product );