API UnitPVPRank

Returns the specified unit's PvP rank ID.
 rankID = UnitPVPRank(unit)
==Arguments==
:;unit:
==Returns==
:;rankID: - Starts at 5 (not at 1) for the first rank. Returns 0 if the unit has no rank. Can be used in () for rank information.
==Example==
 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))
 end
 > Koribli is rank ID 12, rank number 8 (Knight-Captain)
==Values==
==Patch changes==