ESODecoded

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 WritWorthyits 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
WritWorthy2,484,332
Daily Provisioning1,544,059
Daily Alchemy1,434,977
Furniture Catalogue1,213,662
Auto Recharge (and repair)1,014,626
Votan's Fish Fillet1,006,043