Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Wowpedia
Advertisement

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[]

Advertisement