Automattic\WooCommerce\Internal\ShopperLists
ShopperListItem::to_array
Storage shape used to persist into user_meta.
Метод класса: ShopperListItem{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$ShopperListItem = new ShopperListItem(); $ShopperListItem->to_array(): array;
Код ShopperListItem::to_array() ShopperListItem::to array WC 11.2.2
public function to_array(): array {
return array(
'key' => $this->key,
'product_id' => $this->product_id,
'variation_id' => $this->variation_id,
'variation' => $this->variation,
'quantity' => $this->quantity,
'date_added_gmt' => $this->date_added_gmt,
'product_title_at_save' => $this->product_title_at_save,
);
}