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.
Parameters
Section titled “Parameters”link: Currency hyperlink string.
Returns
Section titled “Returns”Numeric currency id, or nil when the link is not a currency link.
Example
Section titled “Example”local currencyID = E:GetCurrencyIDFromLink(link)Small parsing helper for addons that store or inspect currency links.
Source: ElvUI/Game/Shared/General/API.lua:231