WC_Product_Variable::set_children()
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 Product Variable::set children WC 9.8.2
public function set_children( $children ) { $this->children = array_filter( wp_parse_id_list( (array) $children ) ); }