WC_Product_Variable_Data_Store_Interface::child_has_weight()
Does a child have a weight set?
Метод класса: WC_Product_Variable_Data_Store_Interface{}
Хуков нет.
Возвращает
true|false
.
Использование
$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) (обязательный)
- Product object.
Код WC_Product_Variable_Data_Store_Interface::child_has_weight() WC Product Variable Data Store Interface::child has weight WC 9.7.1
public function child_has_weight( $product );