Automattic\WooCommerce\Internal\ShopperLists

ShopperList::find_item │ public │ WC 1.0

Find an item by key.

Метод класса: ShopperList{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$ShopperList = new ShopperList();
$ShopperList->find_item( $key ): ?ShopperListItem;
$key(строка) (обязательный)
Storage key.

Код ShopperList::find_item() WC 11.2.2

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