Automattic\WooCommerce\Internal\ShopperLists

ShopperList::find_item │ public │ WC 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 11.2.2

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