WoW:API DisableAddOn: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
 
m (Move page script moved page API DisableAddOn to API DisableAddOn without leaving a redirect)
 
(7 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<center>'''DisableAddOn''' - ''Documentation by [[User:Flickering|Flickering]]''</center>
{{wowapi}} __NOTOC__


Disable an AddOn for subsequent sessions.
Disable an AddOn for subsequent sessions.
Line 11: Line 11:
:;name : String - The name of the AddOn to be disabled.
:;name : String - The name of the AddOn to be disabled.
=== Returns ===
=== Returns ===
:<i>nil</i>
:''nil''


----
== Notes ==
__NOTOC__
* 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.
{{Template:WoW API}}
* Takes effect only after reloading the UI - [[API_ReloadUI|ReloadUI()]].
[[Category:API Functions|DisableAddOn]]
[[Category:API AddOn Functions|DisableAddOn]]

Latest revision as of 04:45, 15 August 2023

WoW API < DisableAddOn

Disable an AddOn for subsequent sessions.

DisableAddOn(index or "name")

Parameters[edit]

Arguments[edit]

(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]

nil

Notes[edit]

  • 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().