WC_Product_Variable::child_has_weight()
Does a child have a weight set?
Description Description
Return Return
(boolean)
Source Source
File: includes/class-wc-product-variable.php
public function child_has_weight() { $transient_name = 'wc_child_has_weight_' . $this->get_id(); $has_weight = get_transient( $transient_name ); if ( false === $has_weight ) { $has_weight = $this->data_store->child_has_weight( $this ); set_transient( $transient_name, (int) $has_weight, DAY_IN_SECONDS * 30 ); } return (bool) $has_weight; }