Automattic\WooCommerce\Internal\ShopperLists
ShopperList::find_item
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() ShopperList::find item code WC 10.9.1
public function find_item( string $key ): ?ShopperListItem {
return $this->items[ $key ] ?? null;
}