Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns all recipes for the current profession.
recipeIDs = C_TradeSkillUI.GetAllRecipeIDs()
Returns[]
- recipeIDs
- number[] - 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.
Example[]
The following snippet lists the names of all the recipes for the current trade skill:
for _, id in pairs(C_TradeSkillUI.GetAllRecipeIDs()) do
local recipeInfo = C_TradeSkillUI.GetRecipeInfo(id)
print(recipeInfo.recipeID, recipeInfo.name)
end
Details[]
- The table that is returned includes both learnt and unlearnt recipes and ignores all filtering.
Patch changes[]
Patch 7.0.3 (2016-07-19): Added.