API GetItemIcon

104,672pages on
this wiki
Add New Page
Talk4 Share
WoW API < GetItemIcon

Return the icon texture for the item.

itemIcon = GetItemIcon(itemID) 

Parameters Edit

Arguments Edit

Integer - The numeric ID of the item. ie. 12345

Returns Edit

String - The name and path of the icon texture of the item.

Example Edit

itemIcon = GetItemIcon(6948)
print("itemIcon :", itemIcon)


prints Hearthstone icon - "Interface\\Icons\\INV_Misc_Rune_01".

Notes Edit

  • As of patch 4.0.1, this function requires an itemID, it will not work with item names or links.

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Also on Fandom

Random Wiki