WoW API < DisableAddOn

Disable an AddOn for subsequent sessions.

DisableAddOn(index or "name")

Parameters[edit | edit source]

Arguments[edit | edit source]

(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[edit | edit source]

nil

Notes[edit | edit source]

  • 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().
Community content is available under CC-BY-SA unless otherwise noted.