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