IsProtectedFunction
ESO Lua API function — used by 69 of the 3,030 addons we indexed (combined 13,281,081 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
IsProtectedFunction(string functionName)Returns: bool isProtected
Real usage — from WritWorthy
-- d("WWAQ: accept slot_id:"..tostring(slot_id).." "..tostring(item_link))
if IsProtectedFunction("UseItem") then
CallSecureProtected("UseItem", BAG_BACKPACK, slot_id)Short excerpt from the shipping addon WritWorthy — its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.
Most-downloaded addons using it
| Addon | Total downloads |
|---|---|
| WritWorthy | 2,484,332 |
| Daily Provisioning | 1,544,059 |
| Daily Alchemy | 1,434,977 |
| Furniture Catalogue | 1,213,662 |
| Auto Recharge (and repair) | 1,014,626 |
| Votan's Fish Fillet | 1,006,043 |