WordPress at Your Fingertips
function is not described

WC_Product_Grouped::set_children() public WC 1.0

Return the children of this product.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Product_Grouped = new WC_Product_Grouped();
$WC_Product_Grouped->set_children( $children );
$children(array) (required)
List of product children.

Code of WC_Product_Grouped::set_children() WC 5.8.0

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