Sol.hooks.GetOriginalFn

Sol.hooks.GetOriginalFn = function(addonName, fnName, frame)

Get the original, hooked function. Use this to call the original function after hooking yours. For example, after hooking DEFAULT_CHAT_FRAME.AddMessage: MyAddon.DEFAULT_CHAT_FRAME_AddMessage = function(msg) local originalFn = Sol.hooks.GetOriginalFn("MyAddon", "AddMessage", DEFAULT_CHAT_FRAME) MyAddon.DoStuff(msg) originalFn(msg) end Parameters: + addonName - Your addon's name + fnName   - The name of the function to unhook + frame    - The frame or table the function is for, or nil

Returns: + The original function assigned to this frame and fnName, before it was hooked, or nil if the function hasn't been hooked.