WC_Product_Grouped::set_childrenpublicWC 1.0

Sets an array of children for the product.

Метод класса: WC_Product_Grouped{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WC_Product_Grouped = new WC_Product_Grouped();
$WC_Product_Grouped->set_children( $children );
$children(массив) (обязательный)
List of product children.

Код WC_Product_Grouped::set_children() WC 10.8.1

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