WordPress at Your Fingertips
function is not described

WC_Product_Variable::set_children() public WC 3.0.0

Sets an array of children for the product.

{} It's a method of the class: WC_Product_Variable{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Product_Variable = new WC_Product_Variable();
$WC_Product_Variable->set_children( $children );
$children(array) (required)
Children products.

Changelog

Since 3.0.0 Introduced.

Code of WC_Product_Variable::set_children() WC 5.6.0

public function set_children( $children ) {
	$this->children = array_filter( wp_parse_id_list( (array) $children ) );
}