WC_Product_Variable_Data_Store_Interface::child_has_weight()publicWC 1.0

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() code WC 8.7.0

public function child_has_weight( $product );