||The subject of this article was removed from World of Warcraft in patch 5.4.0 but is present in World of Warcraft: Classic.
- The subject of this article does not exist on the retail realms anymore.
- The categories should reflect this, and should not include retail realm categories.
Returns the specified unit's PvP rank ID.
rankID = UnitPVPRank("unit")
- number - Starts at 5 (not at 1) for the first rank. Returns 0 if the unit has no rank. Can be used in GetPVPRankInfo() for rank information.
local rankID = UnitPVPRank("target")
local rankName, rankNumber = GetPVPRankInfo(rankID)
if rankName then
print(format("%s is rank ID %d, rank number %d (%s)", UnitName("target"), rankID, rankNumber, rankName))
> Koribli is rank ID 12, rank number 8 (Knight-Captain)
Dishonorable ranks like "Pariah" exist but were never used in Vanilla.