WC_Product_Variable::set_children( array $children )
Sets an array of children for the product.
Description Description
Parameters Parameters
- $children
-
(Required) Children products.
Source Source
File: includes/class-wc-product-variable.php
public function set_children( $children ) {
$this->children = array_filter( wp_parse_id_list( (array) $children ) );
}
Changelog Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |