WC_Product_Variable::set_children()publicWC 3.0.0

Sets an array of children for the product.

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

Хуков нет.

Возвращает

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

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

$WC_Product_Variable = new WC_Product_Variable();
$WC_Product_Variable->set_children( $children );
$children(массив) (обязательный)
Children products.

Список изменений

С версии 3.0.0 Введена.

Код WC_Product_Variable::set_children() WC 8.7.0

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