WoW:API DisableAddOn: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(reload ui to take effect)
(Factual correction)
Line 14: Line 14:


== Notes ==
== Notes ==
* Sometimes this function will disable the addon globally and sometimes only for the current character. There doesn't appear to be any pattern to this or any reason behind this. Perhaps the functionality was changed in patch 2.4.
* The first time an addon is disabled (with this function or the user addon panel) it will be disabled for all characters on that realm. Every subsequent time it will enabled/disabled per character.
* Takes effect only after reloading the UI - [[API_ReloadUI|ReloadUI()]].
* Takes effect only after reloading the UI - [[API_ReloadUI|ReloadUI()]].

Revision as of 17:24, 12 January 2009

WoW API < DisableAddOn

Disable an AddOn for subsequent sessions.

DisableAddOn(index or "name")

Parameters

Arguments

(index or "name")
index
Integer - The index of the AddOn to disable in the user's AddOn list.
name
String - The name of the AddOn to be disabled.

Returns

nil

Notes

  • The first time an addon is disabled (with this function or the user addon panel) it will be disabled for all characters on that realm. Every subsequent time it will enabled/disabled per character.
  • Takes effect only after reloading the UI - ReloadUI().