You might take a look at
https://www.townlong-yak.com/framexm...onList.lua#478
Lua Code:
function AddonList_HasOutOfDate()
local hasOutOfDate = false;
for i=1, GetNumAddOns() do
local name, title, notes, loadable, reason = GetAddOnInfo(i);
local character = nil;
if (not InGlue()) then
character = UnitName("player");
end
local enabled = (GetAddOnEnableState(character, i) > 0);
if ( enabled and not loadable and reason == "INTERFACE_VERSION" ) then
hasOutOfDate = true;
break;
end
end
return hasOutOfDate;
end