WC_Product_Grouped::set_children()publicWC 1.0

Return the children of this 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 8.7.0

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