API C_TradeSkillUI.GetAllRecipeIDs

From Wowpedia
Jump to: navigation, search

Returns a table containing all the recipe IDs for the current trade skill

recipeIDs = C_TradeSkillUI.GetAllRecipeIDs()


table - The IDs of all the recipes for the current trade skill, or an empty table if the trade skill panel has yet to be opened.


The following snippet lists the names of all the recipes for the current trade skill:

local recipeIDs = C_TradeSkillUI.GetAllRecipeIDs();
local recipeInfo = {};
for idx = 1, #recipeIDs do
  C_TradeSkillUI.GetRecipeInfo(recipeIDs[idx], recipeInfo);
  print(idx, recipeInfo.name);


  • The table that is returned includes both learnt and unlearnt recipes and ignores all filtering.

Patch changes

See also