Skip to content

Get Currency ID From Link

Core Helper

Extracts the currency id from a WoW currency hyperlink.

NamespaceEModuleCoreLifecyclestable
E:GetCurrencyIDFromLink(link)

Extracts the currency id from a WoW currency hyperlink.

link: Currency hyperlink string.

Numeric currency id, or nil when the link is not a currency link.

local currencyID = E:GetCurrencyIDFromLink(link)

Small parsing helper for addons that store or inspect currency links.

Source: ElvUI/Game/Shared/General/API.lua:231