C_AddOns .DisableAddOn
Jump to navigation
Jump to search
Disables an addon on the next session.
C_AddOns.DisableAddOn(name [, character])
Arguments
- name
- string|number - The name of the addon to be disabled, or an index from 1 to C_AddOns.GetNumAddOns. Blizzard addons can only be disabled by name.
- character
- string? - The name of the character, excluding the realm name. If omitted, disables the addon for all characters.
Example
Disables an addon for all characters on the current realm.
C_AddOns.DisableAddOn("HelloWorld")
Disables an addon only for the current character.
C_AddOns.DisableAddOn("HelloWorld", UnitName("player"))
Details
Related API | C_AddOns.EnableAddOn |
Patch changes
Patch 10.2.0 (2023-11-07): Namespaced to C_AddOns
. This now defaults to all characters instead of the current character if the character
param is omitted.