Returns the value of certain fields in an addon's TOC file
See also Addon-related functions.
Signature:
data = GetAddOnMetadata(index, "variable") or GetAddOnMetadata("name", "variable")
Arguments:
index- Index of an addon in the addon list (between 1 andGetNumAddOns()) (number)name- Name of an addon (name of the addon's folder and TOC file, not the Title found in the TOC) (string)variable- Name of a header from the addon's TOC file; only certain headers can be queried:Author,Title,Notes,Version, and any header whose name starts with"X-"(e.g.X-Website,X-Category) (string)
Returns:
data- Contents of the given TOC file header, or nil if the header does not exist or cannot be queried (string)