Automattic\WooCommerce\Internal\ShopperLists

ShopperList::savepublicWC 1.0

Persist the current state to user meta.

Method of the class: ShopperList{}

No Hooks.

Returns

null. Nothing (null).

Usage

$ShopperList = new ShopperList();
$ShopperList->save(): void;

ShopperList::save() code WC 10.9.1

public function save(): void {
	Users::update_site_user_meta(
		$this->user_id,
		self::META_KEY_PREFIX . $this->slug,
		$this->to_array()
	);
}