API RegisterForSave

From Wowpedia
Jump to: navigation, search
Main Menu


WoW API

Registers a global with the specified name to be saved.

RegisterForSave("variable")

Arguments

variable 
String - The name of the variable to save.

Details

  • This function is only available to secure code, and will save the variable in the WTF/Account/ACCOUNTNAME/SavedVariables.lua file.
  • Addons must use the SavedVariables and SavedVariablesPerCharacter .toc fields to specify names of variables they want to save.
Personal tools
Namespaces
Variants
Actions
Navigation Portals
Interaction
Toolbox