API C PvP.IsWarModeDesired

Indicates whether the player has opted into War Mode beginning with Battle for Azeroth, regardless if the player is in an outdoor zone where such PvP is actually possible. warModeDesired = C_PvP.IsWarModeDesired

Returns

 * warModeDesired : - True if the player has turned war mode on; false otherwise.

Example
The following example is adpated from