Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

API C_TradeSkillUI.GetCategories

From Wowpedia
Jump to: navigation, search

Returns a value containing the number of Category IDs for trade skills

numCategories = C_TradeSkillUI.GetCategories()


value - The number of categories available


The following snippet lists the names of all the Categories:

local numCategories = C_TradeSkillUI.GetCategories();
local catInfo = {};
for idx = 1, numCategories do
  C_TradeSkillUI.GetCategoryInfo(idx, catInfo);
  print(idx, catInfo.name);


  • The table that is returned includes Category info.
  • Some Categories are empty.

See also