Automattic\WooCommerce\Internal\ShopperLists
ShopperListItem::to_array
Storage shape used to persist into user_meta.
Method of the class: ShopperListItem{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ShopperListItem = new ShopperListItem(); $ShopperListItem->to_array(): array;
ShopperListItem::to_array() ShopperListItem::to array code WC 10.9.1
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,
);
}