Returns the expansion level of the game. Returns the expansion level active on the current account. Differs from GetAccountExpansionLevel() as that function returns the highest purchased expansion level, while GetExpansionLevel() returns the currently active one.

See also Client control and information functions.


expansion = GetExpansionLevel()


  • expansion - A number determining the active expansion level of the game (number, expansionID)
    • 0 - World of Warcraft ("Classic")
    • 1 - World of Warcraft: The Burning Crusade
    • 2 - World of Warcraft: Wrath of the Lich King
    • 3 - World of Warcraft: Cataclysm
    • 4 - World of Warcraft: Mists of Pandaria