Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
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[]
Patch 8.0.1 (2018-07-17): Changed to return a table (Build 26231).
Patch 7.0.3 (2016-07-19): Added.