API UnitPVPName

Returns the unit's conjoined title and name. titleName = UnitPVPName("unit")

Arguments

 * unit : String - unit to retrieve the name and title of.

Returns

 * titleName : String - The unit's combined title and name, e.g. "Playername, the Insane", or nil if the unit is out of range.

Details

 * This function retrieves information about all titles; at the time it was added, titles were exclusively gained through PvP rankings.
 * Note that  can be nil if the unit is not currently  to the client.