WC_Product_Grouped::set_children()
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 Product Grouped::set children WC 9.8.1
public function set_children( $children ) { $this->set_prop( 'children', array_filter( wp_parse_id_list( (array) $children ) ) ); }