Wowpedia

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

READ MORE

Wowpedia
Advertisement

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

Legion Patch 7.0.3 (2016-07-19): Added.

Advertisement