On a side note, your loop creates a new table on every iteration, even though most of the entries do not actually change on each iteration. The _G lookups are also redundant, and I don't think any of those tooltips actually have a BlahTooltip
3 (only 1 and 2), though I could be wrong on that last point. Try this instead:
Lua Code:
for _, tooltip in pairs({
GameTooltip,
FrameStackTooltip,
FriendsTooltip,
ItemRefShoppingTooltip1,
ItemRefShoppingTooltip2,
ItemRefTooltip,
ShoppingTooltip1,
ShoppingTooltip2,
ShoppingTooltip3, -- does this actually exist?
WorldMapCompareTooltip1,
WorldMapCompareTooltip2,
WorldMapCompareTooltip3, -- does this actually exist?
WorldMapTooltip,
AutoCompleteBox,
ChatMenu,
EmoteMenu,
LanguageMenu,
VoiceMacroMenu
}) do
ApplyTooltipStyle(tooltip)
end