View Single Post
04/17/23, 01:03 AM   #1
sinnereso
AddOn Author - Click to view addons
Join Date: Oct 2022
Posts: 247
Question possible to disable/remove a hook?

Ive been looking all night and cant find any mention of how to remove a hook.

Im looking to unregister events(which is no problem to do) and disable a posthook when a feature is disabled.

its being enabled like this onload and when toggled on:

Code:
ZO_PostHook("ZO_Armory_Keyboard_CollapsedEntry_OnMouseUp", MyAddon.MyFunction)
is there a way to shut that off when its not needed?

Last edited by sinnereso : 04/17/23 at 01:31 AM.
  Reply With Quote