ESODecoded

SecurePostHook

ESO Lua API function — used by 156 of the 3,030 addons we indexed (combined 39,965,141 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

SecurePostHook(table targetTable, string functionName, function hookingFunction)

Real usage — from LibAddonMenu-2.0

local function SetupTooltips(comboBox)
    SecurePostHook(ZO_ComboBoxDropdown_Keyboard, "OnEntryMouseEnter", function(comboBoxRowCtrl)
        local lComboBox = comboBoxRowCtrl.m_owner

Short excerpt from the shipping addon LibAddonMenu-2.0its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.

Most-downloaded addons using it

AddonTotal downloads
LibAddonMenu-2.06,183,657
Tamriel Trade Centre5,234,232
Advanced Filters - Updated (Inventory sub- & dropdown plugin filters)2,602,223
LibChatMessage2,433,233
LibFilters-3.02,063,617
LibHarvensAddonSettings2,057,233