Automattic\WooCommerce\Internal\ShopperLists

ShopperList::find_itempublicWC 1.0

Find an item by key.

Method of the class: ShopperList{}

No Hooks.

Returns

null. Nothing (null).

Usage

$ShopperList = new ShopperList();
$ShopperList->find_item( $key ): ?ShopperListItem;
$key(string) (required)
Storage key.

ShopperList::find_item() code WC 10.9.1

public function find_item( string $key ): ?ShopperListItem {
	return $this->items[ $key ] ?? null;
}