C_TradeSkillUI.GetCategories

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in 7.0.3

Returns a table of category IDs for the currently opened trade skill.

categoryIDs = C_TradeSkillUI.GetCategories()

Returns

categoryIDs
number[]

Example

This lists all categories for the currently opened profession.

local categories = {C_TradeSkillUI.GetCategories()}

for _, categoryID in pairs(categories) do
	print(categoryID, C_TradeSkillUI.GetCategoryInfo(categoryID).name)
end

Patch changes

Battle for Azeroth Patch 8.0.1 (2018-07-17): Changed to return a table (Build 26231).
Legion Patch 7.0.3 (2016-07-19): Added.

See also