woocommerce_get_children

woocommerce_get_children

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_get_children') is found 2 times:

  • /includes/class-wc-product-variable.php line 234
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
            $this->set_children( $children['all'] );
            $this->set_visible_children( $children['visible'] );
        }
     
        return apply_filters( 'woocommerce_get_children', $this->children, $this, false );
    }
     
    /**
     * Return a products child ids - visible only.
     *
     * This is lazy loaded as it's not used often and does require several queries.
  • /includes/class-wc-product-variable.php line 251
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
            $children = $this->data_store->read_children( $this );
            $this->set_children( $children['all'] );
            $this->set_visible_children( $children['visible'] );
        }
        return apply_filters( 'woocommerce_get_children', $this->visible_children, $this, true );
    }
     
    /**
     * Return an array of attributes used for variations, as well as their possible values.
     *
     * This is lazy loaded as it's not used often and does require several queries.